ARGB to RGB

by jozefchutka
♥0 | Line 35 | Modified 2010-11-13 01:44:33 | MIT License
play

ActionScript3 source code

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

package
{
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.text.TextField;
    import flash.ui.Multitouch;
    
    [SWF(width="465", height="465", frameRate="30", backgroundColor="#FFFFFF")]
    public class WonderflApp extends Sprite
    {
        public var tf:TextField = new TextField();
        
        public function WonderflApp():void
        {
            stage.scaleMode = StageScaleMode.NO_SCALE;
            stage.align = StageAlign.TOP_LEFT;
            
            var i:uint = 200000000;
            var d0:Date = new Date();
            while(i--)
                0xaabbccdd<<8>>>8;
            var d1:Date = new Date();
            
            i = 200000000;
            while(i--)
                0xaabbccdd & 0xffffff;
            var d2:Date = new Date();
            
            addChild(tf);
            tf.appendText("<<8>>>8 : " + (d1.time - d0.time) + "ms \n");
            tf.appendText("&: " + (d2.time - d1.time) + "ms \n");
            tf.multiline = true;
            tf.height = 200;
            tf.width = 200;
            tf.background = true;
            tf.border = true;
        }
    }
}