flash on 2009-11-21
掛け算九九の表を作ってみた。見栄えは悪い。
♥0 |
Line 25 |
Modified 2009-11-21 23:05:34 |
MIT License
archived:2017-03-20 03:47:35
ActionScript3 source code
/**
* Copyright takuya1021 ( http://wonderfl.net/user/takuya1021 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/4Egh
*/
//掛け算九九の表を作ってみた。見栄えは悪い。
package {
import flash.display.Sprite;
import flash.text.TextField;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var tf :TextField = new TextField;
tf.height =465;
tf.width =465;
addChild(tf);
tf.appendText("\t\t ");
for(var j:int = 1;j<10;j++){
tf.appendText(String(j)+"\t ");
}
tf.appendText("\n\t ");
tf.appendText("\n");
for(var i:int = 1;i<10;i++){
tf.appendText(String(i)+" \t\t ");
for(var j:int = 1;j<10;j++){
tf.appendText(String(i*j)+"\t ");
}
tf.appendText("\n");
}
}
}
}