flash on 2010-7-3

by melfuad
♥0 | Line 19 | Modified 2010-07-03 02:20:33 | MIT License
play

ActionScript3 source code

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

package {
    import flash.events.MouseEvent;
    import flash.text.*;
    import flash.display.Sprite;
    
    public class FlashTest extends Sprite {
        var tf:TextField;
        public function FlashTest() {
            // write as3 code here..
            tf=new TextField();
            tf.x=10;
            tf.y=10;
            tf.text="Hello world today";
            addChild(tf);
            addEventListener(MouseEvent.MOUSE_MOVE, move);
            
        }
        public function move(evt:MouseEvent):void{
            tf.x=mouseX;
        }

    }
}