Created
April 2, 2010 14:31
-
-
Save mrinalwadhwa/353181 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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