A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Drop-down Menu Problems

  1. #1
    Junior Member
    Join Date
    Jul 2004
    Location
    Washington
    Posts
    3

    Drop-down Menu Problems

    Alright, so I have a movie clip, inside the movie clip is a button with a few layers in the main timeline. In the actionscipt it says:

    on(rollOver){
    gotoAndStop(6);
    }

    On frame 6 I have the main button, and the second drop-down button attached to it in the layer underneath the main button. The main button has the actionscript:

    on (release){
    loadVariables("day.txt","_root");
    }

    and the drop-down button has the script:

    on (release){
    gotoAndPlay("Blog Archive", 1);
    }

    I also have a roll-off box underneath all this to reset everything if the mouse leaves that area:

    on (rollOut) {
    gotoAndStop(1);
    }

    My problem is, the main button works like a charm, but the drop-down button doesn't do anything other than look pretty and change colors when you click on it.

    I've looked at all my scene names, and double checked frame references... but I don't know why the second button won't work.
    I was even suggested using:

    on (release) {_parent.gotoAndStop(INSERT FRAME NUMBER);
    }

    But still no luck... Any suggestions?
    Life would be so much easier if we just had the source code...

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Well for one thing you can't target scene names from movie clips. In fact you should never target scene names...
    You should target a labeled frame instead. Label the targeted frame in the targeted scene with a unique label, add _root, and target the labeled frame...
    code:

    on(release){
    _root.gotoAndplay("frame_label");
    }



    But you may also have another problem with your overlapping buttons... Could only tell by looking at your .fla, zipped up and in MX only format, not MX2004.

  3. #3
    Junior Member
    Join Date
    Jul 2004
    Location
    Washington
    Posts
    3
    Thanks, worked like a charm!
    Life would be so much easier if we just had the source code...

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