Yup, Tested and True,

it's definitely onLoadInit that does the trick, because it is fired when the first frame of your loaded SWF is played. onLoadComplete only tells you that the SWF bytes have completed loading before it actually begins playing.

the rest of the onLoad... events for the MovieClipLoader seem to be there only for the purpose of load progress monitoring. Of course you can put them at any use you see fit but basically that is waht they do.

onLoadInit tells you that your SWF is ready for manipulation.

HTH

Alain

John Harding wrote:

Hello all,

I have a project where I'd like to use MovieClipLoader to load an external
SWF, so that I can be notified when the load is complete.  However, it
appears that MovieClipLoader.loadClip() does not allow one to pass
parameters (i.e. flashVars) to the SWF like MovieClip.loadMovie() does.

As an experiment, I tried setting my SWF parameters in response to
onLoadComplete(), and it appears to work - onLoadComplete is called before the loaded SWF initializes, and the parameters set in onLoadComplete() are
set on the root clip of the loaded SWF.

So my question is, does anyone know if this is guaranteed behavior?  The
Macromedia docs all seem to indicate that onLoadComplete() is completely
useless and one should use onLoadInit() (and yes, I'm still using onLoadInit
for everything other than the SWF parameters).

Thanks!
-John
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to