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

MC with stopping points....

Status
Not open for further replies.

natedeia

Technical User
May 8, 2001
365
US
I have a MC, which has 5 keyframes, each named (home, about, etc....) and have 5 buttons, one for each. I can't seem to find the correct script to throw into it. Here is what i have, strange though, out of all 5 i can just get one to work, then messed with it and got only one other to work, meaning when i press (release) a button it is supposed to find it's way on the MC according to the name of the keyframe in the MC. Here it is.....

on (release) {gotoAndStop ( longmc.home );

}

Besides that, anyone know of the code that will do the above and ALSO cruise along in the MC to the next keyframe name selected. Make any sense??????? I really need help! Thanks again and again!
 
Try:

on (release) {
longmc.gotoAndStop ("home");
}

;-)
 
Oldtemp......you there? You know I am just now picking up the scripting and have been finding out that they seem to be able to be written in different ways and get the same result. Tricky!
I would like to ask you one other thing....now i have 10 frames between each keyframe, which each has a name as you know. Question here is how can i have it play forward and backwards to each as i select each? Man, you sure would be helping along here! Thanks to you and anyone who might be of help..
 
Yes! You would achieve the same results with Tell Target, for instance, but Macromedia recommends the first script above!

You can't play backwards! Unless... Will check out one of Davdesign's FAQs!
You could reverse the frames, sort of like going back to where you came from but you would still be moving foward, so to speak. You would need like two buttons (back & continue!)... The back button would play one serie of frames and the continue button another serie!
Maybe you're overcomplicating this!

;-)

Glad to have been helpful!
 
As i was trying to make this site, i found one that was doing exactly what i was trying to achieve! And if you go to this link and switch back and forth, button to button, you will notice how it goes (backwards)?????


Guess it may be more than just Flash or could it????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top