forked from: flash on 2010-6-17

by hacker_f21vgseo forked from flash on 2010-6-17 (diff: 23)
♥0 | Line 26 | Modified 2010-06-17 17:22:13 | MIT License
play

ActionScript3 source code

/**
 * Copyright hacker_f21vgseo ( http://wonderfl.net/user/hacker_f21vgseo )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/fM5P
 */

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.display.Shape;
    import flash.events.*;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var tf:TextField = new TextField;
            tf.text = "Hello, world!";
            tf.x = 210;
            tf.y = 240;
            tf.textColor = 0x009900;
            addChild(tf);
            var circle:Shape = new Shape;
            circle.graphics.moveTo(60,60);
            circle.graphics.beginFill(0x33FF33, 0.2);
            circle.graphics.drawCircle(240,240,160);
            circle.graphics.endFill();
            addChild(circle);
            tf.addEventListener(MouseEvent.CLICK, MouseLDownFunc);
            var MouseLDownFunc:Function = function(event:MouseEvent){
				tf.textColor = 0xCC0000;
			};
			
        }
    }
}