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: test

Get Adobe Flash player
by 9re 11 Jul 2011
    Embed
/**
 * Copyright 9re ( http://wonderfl.net/user/9re )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/6HiR
 */

// forked from yAKIr's test
package {
    import flash.system.LoaderContext;
    import flash.display.Sprite;
    import flash.display.Loader;
    import flash.display.Bitmap;
    import flash.events.*;
    import flash.net.URLRequest;
    public class FlashTest extends Sprite {
        public function imageLoaded(event:Event):void
        {
            var image:Bitmap = new Bitmap(event.target.content.bitmapData);
            addChild(image);
        }
        public function loadImage():void
        {
            var loader:Loader = new Loader;
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
            loader.load(new URLRequest("http://assets.wonderfl.net/images/related_images/c/c2/c2dc/c2dc29e1d6c9fd63bd39e3f2493a7236cf1f7cb6"), new LoaderContext(true));
        }
        public function FlashTest() {
            loadImage();
        }
    }
}