flash on 2011-4-2
♥0 |
Line 22 |
Modified 2011-04-02 16:50:01 |
MIT License
archived:2017-03-20 16:16:18
ActionScript3 source code
/**
* Copyright yprops ( http://wonderfl.net/user/yprops )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/lPPo
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
var tx :TextField = new TextField();
tx.width = 200;
tx.height = 100;
tx.border = true;
addChild(tx);
if(Math.random() < 0.5){ //0~1までの適当な数値
tx.text = "小さい";
}else{
tx.text = "大きい";
}
var i :int;
for(i = 0; i < 10; i = i + 1){ //iが10になるまでくりかえし
tx.appendText(i + " ");
}
}
}
}