-
Hey kids,
I just need a little help with regercing frame labels. here is the code as I have it:
function hide(menu)
{
if(menu._currentframe=="open")
{
trace("made it here");
menu.gotoAndStop("closed");
}
}
the "open" and "closed" statements are referrncing frame labels. If I change the "open" statement to the frame number it works. But as soon as I try to refernce it this way it doesn't. The rest of the code works great.
Please I need to be able to reference the frames dynamicly like this. Any help would be appreciated
-
Does this work w/o the double quotes?
if(menu._currentframe==open)...
-
Hannibal Smith...."I love it when a plan comes together!"...Haha...good stuff. A-Team was a great show...
-
Senior Member
Try if (menu._currentframe("open") == true)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|