forked from: TestBase
forked from TestBase (diff: 7)
ActionScript3 source code
/**
* Copyright toburau ( http://wonderfl.net/user/toburau )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/wMxS
*/
// forked from toburau's TestBase
// forked from toburau's flash on 2010-1-21
package {
import flash.display.Sprite;
import flash.text.TextField;
public class Test extends Sprite {
public function Test() {
var test:Array = [100,"test",10.0];
for(var i:int=0; i<test.length; i++) {
Print(i.toString());
Print(test[i]);
}
Print("end");
}
private var TextY:int = 0;
public function Print(str:String):void {
var tf:TextField = new TextField;
tf.text = str;
tf.y = TextY;
TextY += 12;
addChild(tf);
}
}
}
