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!

tell target

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
if I have a movie clip called "stop play" in my main movie and I want to tell a button within the movie clip, "stop play", to target the main movie, how do I do this? what is the name of the main movie target?
 
You shouldn't use spaces in movie clip names, use the underscore if you must instead.
To target the main movie's timeline from a movie clip, you would use _root or _level0, but you should also use frame labels and not scene names, thus...

on (press) {
_root.gotoAndPlay("frame_label");
} Regards,

new.gif
 
one more question. I just want the movie to stop wherever it is at the moment the person presses. The same way, the movie should play from that point also.

how can I syntax this?

ex:

on(press){
stop()
}

on(press){
play
}
 
ok..i figured it out. it works with tell target (_level0)
{
stop()
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top