"Runtime loading of SWF's, however, confuses me, and I haven't seen a
defintive source that describes in what version, what happens in a loaded
SWF has the same class, who overrwrites what, etc."
 The loading swf uses the first version of any class that it comes across.
This can be a problem if two compiled swfs use slightly different versions
of a class.
 Jim Kremens

 On 11/13/05, JesterXL <[EMAIL PROTECTED]> wrote:
>
> Depends on when. There are 3 main time intervals that matter:
> - class export frame
> - class runtime initialization
> - SWF runtime class meshing
> * runtime shared libraries
>
> By default, in Flash MX 2004, classes are exported on frame 1; meaning
> they
> are initialized on frame 0 (which you can't do anything on), and I think
> static initializers are run on frame 1.
>
> So, if you leave the default on, you can access your classes from frame 1,
> and on.
>
> However, if your classes are exported on frame 2 or beyond, you'll have to
> wait for that particular frame to be fully downloaded.
>
> Additionally, some classes utilize runtime changes, such as
> EventDispatcher,
> DataSelector, and DataProvider. So, assuming your class does not depend on
> occuring before those events (which most never do), then you are usually
> fine as well.
>
> Runtime loading of SWF's, however, confuses me, and I haven't seen a
> defintive source that describes in what version, what happens in a loaded
> SWF has the same class, who overrwrites what, etc.
>
> Additionally, although Remote Shared Libraries act like #1, I don't know
> when they are actually insantiated, but I believe if you export them on
> frame 1, you can treat them as #1; I always have as compoents and they
> work
> fine.
>
> ----- Original Message -----
> From: "Bruno Mosconi" <[EMAIL PROTECTED]>
> To: "'Flashcoders mailing list'" <[email protected]>
> Sent: Sunday, November 13, 2005 4:55 PM
> Subject: [Flashcoders] Class Loading
>
>
> How do I make sure that all Classes are fully loaded?
>
> Thanks,
> Bruno
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to