Whats wrong with this action script?

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”);
}

why is this not working? :huh:

hey zeka and welcome to action script. Are you ready to kick yourself??? :slight_smile:

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.

It should be [AS]on (release){
_root.display.gotoAndPlay(“tv”);
}[/AS]

Your gotoAndPlay statement was executed improperly.

cant get it to work. ill attach it.

hate that :trout:

oh man… lost… what the heck is up with my head today. I was so concentrated on the missing paran I missed the fact that the code was just plain wrong.

alright… that’s it, I’m giving up crack for good this time.

(please excuse my brain fart… I have no clue why I missed that.)

so… Whats wrong with it?

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.

:slight_smile:

*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.

can you please post the fla?
EDIT : dont worry, got it to work

What do you need me to post the .fla for?

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.