A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Referencing frame label troubles

  1. #1
    Junior Member
    Join Date
    Jul 2001
    Posts
    5
    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

  2. #2
    Senior Member
    Join Date
    May 2001
    Location
    Peoria, Arizona
    Posts
    1,889
    Does this work w/o the double quotes?

    if(menu._currentframe==open)...

  3. #3
    Senior Member
    Join Date
    Mar 2001
    Posts
    428
    Hannibal Smith...."I love it when a plan comes together!"...Haha...good stuff. A-Team was a great show...

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center