Preloader to external movies loaded into MC

I also use loadMovie, but its more complex since i added a transition and a preloadr for the external content.

can u explain ? (sorry to irritate you)

claudio the rest i understood. just explain what is ‘closing’ which appers in every actionscript and where have u placed the loading sequence !

Ok ill try to give a brief explanation on the concept…

Whenever u click a button, it checks if the content you are trying to load is already placed on the container movie clip (lets call it content mc).
If it is a different content, a value is assigned to a variable, telling which external swf should be loaded (note that we are not telling the external movie clip to load right now). Then it tells the transition mc to play its closing animation.

Once the closing animation is done, we are goin to load whaetver movie is stored in our variable into content mc.

The content mc then checks if it has any external content inside itself. Now this is where the preloading thing takes place. Once the external movie is fully loaded, the content mc tells the transition mc to play its opening animation, revealing the new content.

I hope this helps…
Cheers
:slight_smile:

*Originally posted by nasir *
**claudio the rest i understood. just explain what is ‘closing’ which appers in every actionscript and where have u placed the loading sequence ! **

Nasir, closing is just the label of closing animation’s first frame.

dont you think its easier than loading only external movies. god bless transiction and YOU !

U do think that?
:stuck_out_tongue:

yup !

claudio there is one more thing. instead of the loading animation i want to insert a loading bar. where will i inert it ?

with percentage and all that’s because i m preloading an external game !

All the preloading takes place on content mc. I was in a hurry to finish my example and decided not to use a load bar, If u want, put the code for load bar inside content mc.
I think im goint to update my example now…

thank you !

you’re welcome!
let me know when ur done.
:slight_smile: