Thanks for the clarification Muzac,
would you know what could possibly make the project not work at run time
while it works in test Movie?
cheers
JohnT
Muzak wrote:
When calling myMovieClip.loadMovie("bob.swf"), you simply override
all the movieclip's parameters and properties. Consequently, after the first showContainer_mc.loadMovie(...),
showContainer_mc.loadMovie's method gets deleted, overriden by the new SWF being loaded at its place.
So when you try to call the method the second time (else statement), it isn't
there anymore.
That's not correct. The initial movieclip (holder) doesn't go anywhere..
Anything inside the movieclip will go *poof*..
By simply calling loadMovie("showcase.swf", showContainer_mc); (without the myMC.loadMovie notation) and passing the link
reference (1st argument) and the container reference (2nd argument), you get the new content everytime you want (or need).
The global loadMovie function is just very old syntax (Flash Player 3) and
shouldn't be used anymore.
MovieClip.loadMovie was introduced in Flash 5 and has been the prefered way for loading external assets, until the MovieClipLoader
class was introduced in Flash 7, which has events for monitoring the loading progress.
regards,
Muzak
_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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