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

your icon

Get Adobe Flash player
by paq 06 May 2010
/**
 * Copyright paq ( http://wonderfl.net/user/paq )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/lsWv
 */

package 
{
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.display.Loader;
	import flash.events.Event;
	
	import flash.net.URLRequest;
	public class Main extends Sprite
	{
		public function Main():void 
		{
			var icon:String = this.root.loaderInfo.parameters["viewer.iconURL"];
			if (icon)
			{
				var l:Loader = new Loader;
				l.contentLoaderInfo.addEventListener(Event.COMPLETE, function ():void {
					l.width = l.height = 465;
				});
				l.load(new URLRequest(icon));
				addChild(l);
				Wonderfl.capture(stage);
			}
			var tf:TextField = new TextField;
			tf.width = 465;
			tf.text = this.root.loaderInfo.parameters["viewer.displayName"] + "\n" + this.root.loaderInfo.parameters["viewer.iconURL"]
			addChild(tf)
		}
	}
	
}