九九乘法表

by plus.log
http://wonderfl.net/user/plus.log/codes
♥1 | Line 17 | Modified 2011-07-05 01:15:44 | MIT License
play

ActionScript3 source code

/**
 * Copyright plus.log ( http://wonderfl.net/user/plus.log )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/HsrR
 */

/* http://wonderfl.net/user/plus.log/codes */
package {
    import flash.display.*;
    import flash.text.*;
    public class ninenineTable extends Sprite {
        public function ninenineTable() {
            for (var i:int = 1 ; i<10 ; i++){
            for (var j:int = 1 ; j<=i ; j++){
                var lable:TextField = new TextField();
                lable.text = i + "x" + j + "=" + i*j;
                lable.x = 45*i;
                lable.y = 20*j;
                lable.textColor = 0x990000;
                addChild(lable);
                              }}
            
        }
    }
}