flash on 2012-6-13
/**
* Copyright araxomed ( http://wonderfl.net/user/araxomed )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/vjfS
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var spr:Sprite = new Sprite();
spr.graphics.beginFill(0xBB0000);
spr.graphics.drawRect(10, 10, 100, 70);
this.addChild(spr);
var tx:TextField = new TextField();
tx.x = 10;
tx.y = 90;
tx.text = 'Hello world!';
this.addChild(tx);
}
}
}