flash on 2009-10-31

by sinclairc5
♥0 | Line 24 | Modified 2009-10-31 07:53:54 | MIT License
play

ActionScript3 source code

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

package
{
    import flash.display.*;
    import flash.utils.*;
    import flash.ui.*;
    import flash.events.*
    import flash.net.*;
    
    public class FlashTest extends Sprite
    {
        private var bitmapLoader:Loader;
        
        public function FlashTest()
        {
            // write as3 code here..               
            bitmapLoader = new Loader();
            bitmapLoader.addEventListener(Event.COMPLETE, onLoadComplete);
            bitmapLoader.load(new URLRequest("http://www.allthesky.com/icons/rgbcircles.gif"));
         }
         public function onLoadComplete(event:Event):void
         {   
            var thumbnail:Sprite = new Sprite();   
                thumbnail.addChild(bitmapLoader);  
            addChild( thumbnail ); 
          }         
     }
}