flash on 2009-7-2
♥0 |
Line 13 |
Modified 2009-07-02 17:02:59 |
MIT License
archived:2017-03-30 09:49:33
ActionScript3 source code
/**
* Copyright hacker_9p8x8mco ( http://wonderfl.net/user/hacker_9p8x8mco )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/5T2g
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
public class FlashTest extends Sprite {
public function FlashTest() {
var sum:int;
/*
var list:Array = [5,4,3,10,8,6,7,11,14,13];
for(var i:int = 0; i < 10;i++){
sum += list[i];
}
*/
var sum:int = Math.random()*100;
var textField:TextField = new TextField();
textField.text = String(sum);
addChild(textField);
}
}
}