Groups | Blog | Home
all groups > flash actionscript > august 2004 >

flash actionscript : Am I retarded?


slammin007
8/25/2004 9:12:20 PM
OK, having a problem with movie control with buttons.
I've done this a thousand times, but now I keep getting script errors.

Main stage has two movies. One starts playing, the other is stopped. Movie
number one has a nested button, I added the behavior on (release) this.stop,
works fine, now when I try to add another behavior to the nested button,
referring to the other movie on the main stage I get problems. on(release)
this._parent.2.gotoAndPlay("3") it gives the error "wrong syntax", .......but
I've done it a thousand times.......or am I just ReTaRdeD?


on (release) {

//Movieclip GotoAndStop Behavior
this.gotoAndStop(1); <-------------works fine
//End Behavior


//Movieclip GotoAndPlay Behavior <----------------screws it up
this._parent.2.gotoAndPlay(3);
//End Behavior
}


Please help, thanks

PS. has anyone had to reinstall Flash? I'm using Flash MX 2004

slammin007
8/25/2004 9:23:43 PM
nevermind, turns out I am retarded.........instance names can't start with a number.....duh!

place57 NO[at]SPAM hotmail.com
8/26/2004 4:50:19 AM
[quoted text, click to view]

AddThis Social Bookmark Button