Flash player will load the frames of an swf file in sequence and will
start executing the code of the first frame as soon as the first frame
is loaded. You can do the following:

1, main code starts loading external engine swf, waits for it to load
2, meanwhile, the second frame with heavy assets is already loading
3, external swf loaded, you should now wait in main until the second
frame is loaded
4, do the logic with the engine and assets

Alternatively, you can just load the assets from a separate external
swf too instead of placing them on the second frame.

Robin

On Mon, Sep 21, 2009 at 10:47 PM, Andrew Sinning
<[email protected]> wrote:
> My application is going to output user-defined content as a single swf.  The
> swf will contain only a small amount of code, but a potentially large amount
> of text-data(xml), images and sound.
>
> Is there any way to control the loading order of the assets?  I'd like the
> main class to get loaded first.  It will load in the rest of the
> presentation engine from an external, fixed swf.  I would like that to
> happen before the rest of the text, images and sounds get loaded.
>
> I''ll be combining swfmill and mtasc.  Is there any advantage to including
> the text as library assets via swfmill vs. including them in the code via
> mtasc?
>
> Thanks!
>
> _______________________________________________
> swfmill mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>

_______________________________________________
swfmill mailing list
[email protected]
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to