-
loadMovie Issue [f8]
Hey all,
I am having trouble loading external swf's in my main swf using actionscript. My entire project is set up in 7 different swf's, one of which is the driver for the project. I have 7 buttons in each swf that loads it's respective movie. This work just fine and everything displays but I noticed that if I was to load a swf, say swf1, that had links to other places (other than the 7 swf's) then loaded one that did not, say swf2, that you could click where the link had been previously on swf1 on swf2 and it would open the link from the previous swf (swf1). Does this make sense to anyone? Maybe it has something to do with levels or not unloading the movies? I did not use loadmovieNum(), so they should all be in level 0. Unsure what the process is on loading and unloading movies externally, could someone give me some more insight on the basic process one would use to load external swf's? (prolly my problem, not understanding what the command actually does) I am using a blank mc to load all of these and it exists in each swf. Example of the code I have:
on (press){
target_mc.loadMovie("Web.swf");
}
Seems simple. I played around with putting each swf on its on level, but I am unsure if I set it up right or how to unload properly so that one could go back in levels, etc. Unsure whether this is a scope issue, haha I am just confused really.
Any help would be appreciated.
- Harper
-
Ya that's a weird issue I've seen before I dont know exactly how to fix it but there's various way, I'm pretty sure if you clear the target_mc from the stage before loading the new swf into it it will fix your problem so one easy fix might be to add a blank frame at the start of your main swf give it a frame name of reset and then every time one of the buttons is clicked to load a new swf have it include a gotoAndPlay('reset') so that it clears the target_mc from the stage then recrates it before loading the new movie...hope that makes sense and there's alot of other ways to fix this as well...