Sep 22, 2006 #1 origin89 Technical User Joined Sep 22, 2006 Messages 2 Location 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?
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?
Sep 22, 2006 #2 billwatson Instructor Joined Dec 18, 2002 Messages 2,312 Location CA 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 } Upvote 0 Downvote
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 }
Sep 22, 2006 #3 oldnewbie Technical User Joined Dec 6, 2000 Messages 9,142 Location CA No double quotes on frame numbers... Quotes only on frame labels... _level0.gotoAndPlay(2); Also make sure you don't have a stop(); action on frame 2. Regards. Web Hosting - Web Design 03/13/05 -> OLDNEWBIE VS FLASHKIT Upvote 0 Downvote
No double quotes on frame numbers... Quotes only on frame labels... _level0.gotoAndPlay(2); Also make sure you don't have a stop(); action on frame 2. Regards. Web Hosting - Web Design 03/13/05 -> OLDNEWBIE VS FLASHKIT
Sep 22, 2006 #4 kennethkawamoto Technical User Joined Nov 19, 2002 Messages 2,710 Location GB OR this._parent.gotoAndPlay(2); (Sorry, I had to chime in!) Kenneth Kawamoto http://www.materiaprima.co.uk Upvote 0 Downvote
OR this._parent.gotoAndPlay(2); (Sorry, I had to chime in!) Kenneth Kawamoto http://www.materiaprima.co.uk
Sep 22, 2006 #5 oldnewbie Technical User Joined Dec 6, 2000 Messages 9,142 Location CA this._parent... Has never made sense to me! (Sorry, I had to chime back!) Regards. Web Hosting - Web Design 03/13/05 -> OLDNEWBIE VS FLASHKIT Upvote 0 Downvote
this._parent... Has never made sense to me! (Sorry, I had to chime back!) Regards. Web Hosting - Web Design 03/13/05 -> OLDNEWBIE VS FLASHKIT
Sep 24, 2006 Thread starter #6 origin89 Technical User Joined Sep 22, 2006 Messages 2 Location US thanks everyone for the help I got it to work. Upvote 0 Downvote