I have a mc called display and I have a button. This button is inside another mc.When the button is pressed i want the movieclip mc to go to frame label “tv” (obviously with out the quotation marks). this is what i have
on (release) {
_root.display (gotoAndPlay (“tv”);
}
hey zeka and welcome to action script. Are you ready to kick yourself???
on (release) {
_root.display (gotoAndPlay ("tv"));
}
gotta remember to close those parenthesis. :)a
dont’ worry about it though… the day before yesterday I spent 5 hours working on a php error only to find out that I was using a variable “Verify” in some places and a “verify” in others’. Using Arial font… the capitol and lower case v look almost identical. You can’t believe how I screemed when I saw my error.
You know what david, don’t even worry about it. WHen I first looked at the post, offhand I saw a missing parenthesis… but then I realized… “why is there an open parenthesis before a gotoAndPlay?” and I took a second glance and realized the problem.
*Originally posted by zeka *
**so… Whats wrong with it? **
Oop
Just loooked at your .fla
The problem is first because of what was just stated… and second because you can’t use numbers as frame labels. A frame label can contain a number, but it cannot just be, or start with a number.
The on(release) code is in my previous post (3rd post from the top) and the rest is changing the frame labels so they aren’t plain numbers. Like changing “1” to “f1” or whatever.