flash on 2011-9-17
♥0 |
Line 19 |
Modified 2011-09-17 08:01:15 |
MIT License
archived:2017-03-20 17:10:17
ActionScript3 source code
/**
* Copyright zahir ( http://wonderfl.net/user/zahir )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/Q4AX
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private static var a:Array = [];
private static var i:int = 0;
// static initializer
{
for(i = 0; i<10; i++){
a[i] = i;
}
}
private var t:TextField;
public function FlashTest() {
// write as3 code here..
addChild( t = new TextField() );
t.autoSize = "left";
t.appendText( a + "\n" );
}
}
}