PDA

View Full Version : loadmovie voodoo


helenb29
07-06-2004, 07:23 PM
does a browser's cache have anything to do
with loaded movie clips?

scenario 1:
(i'm dealing with considerabley large swfs here 2-4 mbs)
button 1 loads mc1 into mcplaceholder
button 2 loads mc2 into mcplaceholder
upon clicking button 1 again we are waiting for mc1 to load all over again.

why?

annette
07-07-2004, 10:55 PM
I know nothing about a browser's cache but I think that if your loading the mc's into the same mcplaceholder, each time you load one, it replaces the other so the next time you press either button it has to reload over again.

I'm not great on actionscript so this suggestion is basic but try loading the mc's into seperate holders (say mc1_holder, mc2_holder) and including an action on each button to set the _visible property of the other holder to false. That way both swfs remain loaded but only one is visible at any time. You have to remember to include an action in the buttons to turn the _visible property back on when you want it.

I have a feeling though that with swfs that large this solution is probably not the right one - have you got audio and/or video on the swfs? If you have audio (i know nothing about video) and need more control than just turning visibilty on and off maybe you should be thinking about investigating the sound object?