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

バグ?

Get Adobe Flash player
by uwi 13 Jan 2010

    Talk

    paq at 13 Jan 2010 18:45
    1 1.3333333333333333 0 ms
    OKASUKE at 13 Jan 2010 19:20
    1 1.3333333333333333 0 ms
    civet at 14 Jan 2010 06:34
    the result of timeline code in CS3 seems right and... fork
    Embed
/**
 * Copyright uwi ( http://wonderfl.net/user/uwi )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/xgcY
 */

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.utils.getTimer;
    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(b);
            
            var i : uint = 0;
            do{
                var a : uint = 4 / 3;
                tr(a);
                i++;
            }while(i < 1);
            
            var g : int = getTimer();
            tr((g - s) + " ms");
        }

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