flash on 2011-3-20
♥0 |
Line 32 |
Modified 2011-03-20 23:34:29 |
MIT License
archived:2017-03-20 12:13:36
ActionScript3 source code
/**
* Copyright CoremindJP ( http://wonderfl.net/user/CoremindJP )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/t3wW
*/
package {
import flash.text.TextField;
import flash.events.TimerEvent;
import flash.display.Sprite;
import flash.utils.*;
public class FlashTest extends Sprite
{
private var e:TimerEvent;
private var tf:TextField;
public function FlashTest()
{
e = new TimerEvent(TimerEvent.TIMER);
addChild(tf = new TextField()).height = 465;
tf.width = 465;
for (var i:int = 0; i < 5; i++)
test.apply(null, [i + 1, i + 2, i + 0.6, new Object()]);
setInterval(update, 100);
}
public function update():void
{
e.updateAfterEvent();
}
public function updateText(i:int):void
{
tf.appendText(i.toString());
}
public function test(a:int, b:uint, c:Number, d:Object):void
{
tf.appendText(this.toString() + a.toString() + b.toString() + c.toString() + d.toString() + "\n");
}
}
}