|
Revision 13825, 0.7 kB
(checked in by suztomo, 5 years ago)
|
|
大学の課題をcodereposにおいてみるテスト
|
| Line | |
|---|
| 1 | <?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 | <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init();"> |
|---|
| 3 | <mx:Script> |
|---|
| 4 | <![CDATA[ |
|---|
| 5 | import mx.core.UIComponent; |
|---|
| 6 | |
|---|
| 7 | public function init():void { |
|---|
| 8 | var container:UIComponent = new UIComponent(); |
|---|
| 9 | addChild(container); |
|---|
| 10 | |
|---|
| 11 | var txt:TextField = new TextField(); |
|---|
| 12 | txt.text = "suzuki"; |
|---|
| 13 | container.addChild(txt); |
|---|
| 14 | txt.x = 100; |
|---|
| 15 | txt.y = 500; |
|---|
| 16 | |
|---|
| 17 | /* var rect:Rectangle = new Rectangle(0, 0, 141, 100);*/ |
|---|
| 18 | var sprite:Sprite = new Sprite; |
|---|
| 19 | sprite.graphics.beginFill(0x551199, 1); |
|---|
| 20 | sprite.graphics.drawRect(100, 120, 141, 100); |
|---|
| 21 | container.addChild(sprite); |
|---|
| 22 | trace(); |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | ]]> |
|---|
| 26 | </mx:Script> |
|---|
| 27 | |
|---|
| 28 | <mx:Style source="FPazzle.css"/> |
|---|
| 29 | </mx:Application> |
|---|