flash on 2010-7-3
♥0 |
Line 19 |
Modified 2010-07-03 02:20:33 |
MIT License
archived:2017-03-20 06:38:58
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;
}
}
}