In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: forked from: forked from: バグ?

Get Adobe Flash player
by uwi 13 Jan 2010
    Embed
/**
 * Copyright uwi ( http://wonderfl.net/user/uwi )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/sFo4
 */

// forked from bkzen's forked from: forked from: バグ?
// 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("4/3", describeType(b));
            
            var d : uint = 4 / 2;
            tr("4/2", describeType(d));
            
            var i : uint = 0;
            do{
                var a:uint = 4 / 3;
                tr("do 4/3", describeType(a));
                var c:uint = 4 / 2;
                tr("do 4/2", describeType(c));
                i++;
            }while(i < 1);
            
            var g : int = getTimer();
            tr((g - s) + " ms");
        }

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