flash on 2011-11-26
♥0 |
Line 21 |
Modified 2011-11-26 22:21:08 |
MIT License
archived:2017-03-20 03:02:00
ActionScript3 source code
/**
* Copyright fujiopera ( http://wonderfl.net/user/fujiopera )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/q1Bs
*/
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.text.TextField;
public class Main extends Sprite
{
public var _tf:TextField;
public function Main()
{
_tf= new TextField();
addChild(_tf);
_tf.text = "hello!";
addEventListener(Event.ENTER_FRAME, update);
}
public function update(e:Event):void
{
_tf.text = "random" + Math.random();
}
}
}