PDA

View Full Version : Loaded movie inherits previous movies characteristics. How to avoid?


indy73
02-26-2002, 11:56 PM
I seem to be having a bit of a prob. I am loading an external SWF file into a movie and then allowing it to be scrolled. The problem is when I load another different SWF file it seems to inherit the characteristics of the previous file.

example:
First SWF is a movie with 4 images stitched together 1400 pixels in length. The second SWF is 2 images stitched together at 700 pixels in length. Once the second SWF is loaded after the first it wants to allow itself to be scrolled 1400 pixels in length and not it's own 700. Shouldn't it work out that when the second movie is loaded it automatically unloads the first and all of its variables and everything else associated with it? Or do I need to insert an unload movie command?

Jesse
02-27-2002, 12:35 AM
If yo u're loading the later into the same timeline (level or empty movie clip) it should auto unload the former, but you may have to get your scroller script to recheck the _width property (especially if you're loading into an MC)... it could be a matter of you having to update you variables for scrolling calculations to allow for the new size

indy73
02-28-2002, 08:15 PM
Thanks for the help. Much appreciated