MM UI classes uses an initializing:Boolean property to take care of proper initialization... but it seems very buggy to me!
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: segunda-feira, 14 de novembro de 2005 00:58 To: Flashcoders mailing list Subject: Re: [Flashcoders] Class Loading I had heard from an MM engineer that this depends on Player Version; does that really matter? And if so, how does it work with AS3? ----- Original Message ----- From: "Jim Kremens" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <[email protected]> Sent: Sunday, November 13, 2005 7:28 PM Subject: Re: [Flashcoders] Class Loading "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 _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

