flash on 2010-3-10
♥0 |
Line 20 |
Modified 2010-03-10 22:37:52 |
MIT License
archived:2017-03-20 12:51:41
ActionScript3 source code
/**
* Copyright hacker_9p8x8mco ( http://wonderfl.net/user/hacker_9p8x8mco )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/9qSb
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
[SWF(width="465",height="465")]
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var sp:Sprite = new Sprite();
var tf:TextField = new TextField();
sp.graphics.beginFill(0xFF0000,1);
sp.graphics.drawRoundRect(20,20,100,100,10);
sp.graphics.endFill();
addChild(sp);
sp.y = stage.stageWidth / 3;
sp.x = stage.stageHeight / 3;
tf.text = "Wonderfl";
sp.addChild(tf);
sp.buttonMode = true;
}
}
}