flash on 2012-11-29
♥0 |
Line 16 |
Modified 2012-12-01 15:28:06 |
MIT License
archived:2017-03-30 02:51:37
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);
}
}
}