forked from: forked from: バグ?

by bkzen forked from forked from: バグ? (diff: 4)
♥0 | Line 30 | Modified 2010-01-14 00:59:23 | MIT License
play

ActionScript3 source code

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

// forked from uwi's forked from: バグ?
// forked from uwi's バグ?
package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.utils.getTimer;
    import flash.utils.describeType;
    public class Test extends Sprite {
        private var _tf : TextField;
  
        public function Test() {
            _tf = new TextField();
            _tf.width = 465;
            _tf.height = 465;
            addChild(_tf);
            
            var s : int = getTimer();
            
            var b : uint = 4 / 3;
            tr(describeType(b));
            
            var i : uint = 0;
            do{
                var a:uint = 4 / 3;
                tr(describeType(a));
                i++;
            }while(i < 1);
            
            var g : int = getTimer();
            tr((g - s) + " ms");
        }

        private function tr(...o : Array) : void
        {
            _tf.appendText(o + "\n");
        }
    }
}

Forked