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!

Button on a movie clip

Status
Not open for further replies.

Streetdaddy

Programmer
Joined
Jun 10, 1999
Messages
161
Location
AU
Ive got a button on a draggable movie clip. When I put a goto action on the button, it wont go to the frame I specified. If i have the button outside of the movieclip, it works fine! Is there a rule Im missing here? Miles
busymiles@lan-house.net
 
yes, you have to target your mc..

a few ways..

on (press) {
tellTarget ("mcname") {
gotoAndPlay (specifiedframe);
}
}

or this:


on (press) {
with (mcname) {
gotoAndPlay (specifiedframe);
}
}

or this:

on (press) {
_root.mcname.gotoAndPlay("specifiedframe");

}

e.gif


carlsatterwhite@endangeredgraphics.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top