Menggunakan Flex.
mxmlc path/to/StageExample.as
Kode demo untuk tutorial di Youtube
package { | |
import flash.display.Sprite; | |
import flash.text.TextField; | |
public class StageExample extends Sprite { | |
public var txt1:TextField = new TextField(); | |
public function StageExample() { | |
txt1.text = "Hello World!"; | |
txt1.width = 100; | |
addChild(txt1); | |
txt1.x = 10; | |
txt1.y = 10; | |
} | |
} | |
} |