flash on 2012-11-29

by tepe
♥0 | Line 16 | Modified 2012-12-01 15:28:06 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.*;
    import flash.text.*;
    import flash.events.*;
    public class FlashTest extends Sprite {
        private var tf1:TextField = new TextField();
        
        public function FlashTest() {
            // write as3 code here..
            addChild(tf1);
            tf1.text = "test";
            stage.addEventListener(MouseEvent.MOUSE_MOVE,onMove);
            
        }
        private function onMove(e:MouseEvent):void{
            tf1.text = String(mouseX);
        }

    }
}