Skip to content

Instantly share code, notes, and snippets.

@mrinalwadhwa
Created April 2, 2010 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrinalwadhwa/353181 to your computer and use it in GitHub Desktop.
Save mrinalwadhwa/353181 to your computer and use it in GitHub Desktop.
package
{
import flash.display.Bitmap;
import flash.display.Sprite;
[Frame(factoryClass="com.mrinalwadhwa.ApplicationLoader")]
public class Example extends Sprite
{
// embed a big asset just to show the preloader
[Embed(source="big_asset.jpg")]
private var Asset:Class;
public function Example()
{
init();
}
public function init():void
{
var asset:Bitmap = new Asset();
addChild(asset);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment