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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading Movie 2

Status
Not open for further replies.

kamagiseung

Technical User
Jun 3, 2001
29
US
i have 3 swf files, flash.swf, flash2.swf, flash3.swf.
how can i make a button in flash.swf to go to frame 1 of scene 20 in flash2.swf.
ive tried the loadMovie, but i can't figure out directing it to specific frame in specific scene in different swf file.

please help
thanks

robyn
 
In the main movie you can address an other movie loaded on level 5 this way:

on (press) {
_level5.gotoAndPlay(65);
}

Or...

on (press) {
_level5.gotoAndPlay("label");
}

You can't refer to scenes names! So if you want to go to frame 1 of scene 2 and that scene 1 is 64 frames long, you have to target the total of the addition of all the frames of the previous scenes. So 64 + 1 = 65, I am thus targeting frame 65 which appens to be frame 1 of scene 2

A better and easier way of doing this, is targeting a label.
If you label the first frame of scene 2 with start, test or whatever, you can target that label.
This is better, because even if you insert new frames in previous scenes, the label will allways remain attached to the same frame. Using the total frames method you would have to change (each time you did a change somewhere!)the number of the targeted frame!
Get it?
mywink.gif
ldnewbie
 
Thank you very much for your response.

i have a seperate swf files, how can i direct it to go to the frame 3 scene 5 in that swf file?
 
Don't quite get your question.

From the main movie you want to target a particular frame of scene 5 of which movie loaded on which level?
mywink.gif
ldnewbie
 
i can't quite understand what the level and target is for..
i just want to make a button that will load specific frame of scene in different named swf file....
 
Where is this button? In the main movie? And is this "different named swf file" an external swf loaded on a level on top of the main movie?

Can you e-mail me your .fla at oldnewbie@hotmail.com
mywink.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top