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

Button In Flash Not Working

Status
Not open for further replies.

origin89

Technical User
Sep 22, 2006
2
US
Hello, I am having a problem with a button. I want it to gotoandplay frame 2, but when I click it nothing happens. Here is my code:

Code:
on (release) {

	//Movieclip GotoAndStop Behavior
	this.gotoAndPlay("2");
	//End Behavior

}

What is wrong?
 
its a scope problem

on (release) {

//Movieclip GotoAndStop Behavior
gotoAndPlay("2");
//End Behavior

}

OR

on (release) {

//Movieclip GotoAndStop Behavior
_root.gotoAndPlay("2");
//End Behavior

}

OR

on (release) {

//Movieclip GotoAndStop Behavior
myMovieClip.gotoAndPlay("2");
//End Behavior

}
 
thanks everyone for the help I got it to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top