PDA

View Full Version : unloadMovie



NovemberRain
May 13th, 2003, 04:05 AM
I've tried to unload a movieclip from my flash MX File. I've tried on this way..that is

unloadMovie[Num](level/"target")

in this method I've given the target path of the movie clip. But when the browser page refreshing that again displays. How can we unload a movie that never comes even if browser refreshing the page. Any body to help me..:goatee:

ahmed
May 13th, 2003, 04:42 AM
you'll need to use a SharedObject for that.. to write the SO, use this code:
mySO = SharedObject.getLocal("mcvisibility")
if (mySO.data.myObj.isNotVisible) {
unloadMovie[Num](level/"target")
}and then, after where you have your original unloading script, have this action:
mySO.data.myObj = {}
mySO.data.myObj.isNotVisible = true


something like this should do it :)