flash on 2009-10-6

by hacker_9p8x8mco
♥0 | Line 20 | Modified 2009-10-06 04:04:23 | MIT License
play

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/sXGj
 */

package {
    import flash.display.Sprite;
    import flash.text.TextField;
        public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var txt:TextField = new TextField();
            txt.text = "slope skate";
            txt.width = 200;
            txt.height = 30;
            txt.background = true;
            txt.multiline = true;
            txt.border = true;
 
            addChild(txt);
            txt.x = txt.y = 100;
            graphics.beginFill(0xFF0000);
            graphics.drawCircle(100,100,100);
            graphics.endFill();
        }
    }
}