-
Load and unload from menu help!
I have a drop down menu system with 5 different buttons - I need each button to load a different swf file into a movie clip on the stage - at the moment the code for the buttons reads
on (release) {
loadMovie("yourfile.swf",_root.oneClip);
}
how do I program it so that when I movie has loaded and the user chooses another button, it unloads the previous movie and replaces it with a new one?
Please help!
-
Senior Member
A new movie will automatically replace the previous one, if you load it into the same clip.
-
thanks for the info - I'm a beginner!
-
i got bit of the same problem: my menu loads swfs too but mostly it has buttons to other frames.
After i load a swf and then try to load frames they're all overridden by the swf.
Do i have to give all these buttons an unload function? or is there a better way?
-
Senior Member
Your description is rather confusing.
Do you mean that the external swf is making the buttons not work?
What do you mean by....Do you mean frames in the timeline ( you can not load frames ) ????Or html frames or?
-
i hope one day it'll all makes sense to me
sorry about that.
i mean my menu has a few buttons some loading swfs and some that gotoAndPlay another frame number on the timeline.
Whenever i load a swf and then press a gotoAndPlay button to another frame, all you see is the swf.
I was wondering if i had to give all these gotoAndPlay buttons some unload swf action in case one of these swfs have been loaded.
actually in the other post u mentioned i got some paths issues. so it probably has to do with that too.
thanks
-
Senior Member
Maybe you canload the external swf into a movieclip that is placed in a lower layer, so the buttons are on top of it, otherwise unload it if it has no purpose later on in the timeline ( where the buttons take you ).
-
all sorted...
makes so much more to me sense now
hey thanks again.
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
|