Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a movie with 3 movie clips i

Status
Not open for further replies.
Dec 24, 2001
857
GB
I have a movie with 3 movie clips in it (title, index and mainmovie). Theres only one frame in this movie and it has the following actions on it:

loadMovie ("index.swf", index);
loadMovie ("title.swf", title);


Index.swf has four movie clips in it with instance names of one, two, three and four. Each has two frames in it; first one has a stop action and some normal text. The second has a box around the text and the following actions:

stop ();
unloadMovie ("_root.mainmovie");
loadMovie ("Movie 1.swf", _root.mainmovie);


NOTE : MC one loads movie 1.swf, MC two load movie 2.swf etc.

When these actions (barring the stop action) are put onto a button, they work. I haven't got to the stage where I can test them in a movie clip yet.

Anyway, I was trying to add actions on the first frame in the very first movie (the one which loads them all) saying:

loadMovie ("index.swf", index);
loadMovie ("title.swf", title);
tellTarget (_root.index.one) {
gotoAndStop (2);
}


so that it would loop around. My aim was that the very first movie would load title and index (which it does), then index MC one loads another movie into mainmovie. After that movie has finished, I was going to put actions in it to tell Index MC one to goto frame one and stop, then tell Index MC two to goto frame two, which would then load another movie into mainmovie and so on until it got to the end and then I would set it going over again.

Anyway, I can't get the the

tellTarget (_root.index.one) {
gotoAndStop (2);
}

command to work...it just doesn't do anything. I've tried all sorts of variations for the tell target location but none have worked.

As a test, I put two frames into Index and tried to tell target that to frame 2 but that didn't work.

Just to go over it again because its quite hard to explain, I have one movie which loads index.swf, title.swf, and I want actions in Index.swf to load different swfs into the mainmovie MC. If any of this is too hard to understand and needs clarifying, let me know and I'll try...

Any help is appreciated...
 
on (press) {
_root.mainmovie.index.one.gotoAndStop(2);
}

? if i understand you correctly..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Nah...mainmovie is one of three MCs within the first movie...it loads index and title, and then index loads mainmovie. I think this is the sort of thing they did at but now I'm just going to put the index movie actually in it rather than using loadMovie. Shouldn't be too much different.

Thanks for your help anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top