-
Another unloadmovie question
Ok heres another unloadmovie question
I am also using a parent movie, to load a child movie through an empty movie clip.
My problem is this, once the child is loaded in to the parent, I then have another button in the child movie that I want to unload the empty movie clip (container) and load it with another movie.
Unloading the movie is fine, but I can't seem to load the other external movie.
I'm using Flash 5, and the code I am using is:
on(press){
unloadMovie("/container");
}
on (release) {
loadMovie ("http://www.furious5.co.uk/kwikgrip/ext/map.swf", "/container");
}
Any ideas what the problem is?
-
if the button is in the movie that gets unloaded on press, logic says it will disappear before even reaching the on(release) right?
anyway, you do not need to unload before loading into the same container, as the clip gets automatically replaced.
last thing, the "/" slash is flash4 scripting. It has been replaced since flash5 by "_root" so _root.container would be the actual dot syntax for that path.
gparis
-
Of course!
Thanks for taking the time to respond, I had obviously been staring at the code for too long..
Again thanks for pointing out the slash problem, I don't even know why I was using this - must be one of those days.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|