All my Buttons (18 of them) reside in a SWF, "buttons.swf", that's called into the Main Movie at start up via loadMovieNum (_level #)
I have several other SWF's that load the same way, called into the Main Movie at start up, each into thier own _level #. (the loadMovieNum at start up works fine that's not the problem, please read on)
Another of these SWF's that loads at start up is "home.swf". In this SWF I have a Movie Clip, and in this Movie Clip I have a button that targets a _level and a Lable that resides in the Main Movie
(THIS IS THE PROBLEM)
I can target the _level, no problem, but I CAN"T get the playhead to gotoAndStop (label name)
I've created a simple example, and it works as expected.
External movie is loaded.
You click a button in the main movie, and the external movie loaded at level 1 plays.
Just make sure that the external movie has finished loading. At least the frame you're trying to send the playhead to should be loaded/available already.
You can't load and try to control the external movie at the same time, as it takes some time to load.
Load it (preload it), and then you can control it.
Thank You so much. I see what you did, but I think my problem is a little different.
I'm targeting the _levels of the Main/_root movie, while at the same time targeting the labels in the "buttons.swf" (this is where all my buttons and the labels reside), and I'm trying to do this from a MC that's inside another swf on a _level in my Main/_root movie.
I hope this makes sense, if not I can attach an example ZIP file.
Hey JAntonio,
Very Basics,
*Main movie on _level0;
**Buttons loaded on _level1;
***Movies Loaded from _level2 onwards;
Here 3 movies are different SWF but they use the levels on the main Base Movie.
So, If you load any movie through the click of a button make sure it starts from _level2, next movie on _level3, and so on.
Now, if on a button you have an action:
on (release) {
gotoAndStop ("label name");
loadMovieNum ("aboutus.swf", _level2);
}
unloadMovie(_level3); //contact.swf
unloadMovie(_level4);// solution.swf
unloadMovie(_level5);// whatever.swf
// make sure when you are loading one movie on a paticular level, The other levels must be unloaded
Last edited by vinitt jaiswal; 04-29-2006 at 10:49 PM.
I have the Main Movie "Whatever.swf" this I know to be my Main/_root movie.
on Layer one / Frame one of this Main movie I have:
loadMovieNum ("buttons.swf", _level5);
My "buttons.swf" has, say 5 buttons, and they all have a label to go to.
Each one of my buttons has the followiing code
on (release)
gotoAndStop(label 1 ro 2 or 3 or 4 or 5 - a different # for each button)
loadMovieNum ("whatever.swf", _level10):
Since they ALL load into the same _level10 that takes care of the unloadMovie(_level??) part since no two movies can reside in the same _level.
So far all of this works when I do it. I get this part it's the following that I'm not getting or not able to make work.
Inside one of the SWF's I just loaded into _level10 I have a Movie Clip in which I have a button with the following code
on (release)
gotoAndStop(at whatever label I want that's in my "buttons.swf" movie) and
loadMovieNum ("whateverTwo.swf", _level10);
The _level10 part works, the SWF I wanted to load, loads, cause it's just a _level and Flash doesn't care what SWF you're in, it only knows to occupy _level10.
The label part is where the Player is not cooperating with me on. I can't seem to get it to gotoAnd do anything with the label part of the code.
Where you wants to go with this button on the external movie time line or on the main time line where this external movie is loaded.
And from the external movie button if you want to control the main movie time line(i.e.lable) Code it:
on (release)
_level0.gotoAndPlay(label)
//if this dosen't work put and _root at the begining
Thanks for the help. I figured out what my problem was, I was so into targeting the _root movie that I fail to see that my "buttons.swf" movie was loading onto _level5 of my Main / _root movie which should have been the _level I should have been targeting for the labels.