dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Script for Drop Down Menu

Hybrid View

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Posts
    21

    Script for Drop Down Menu

    I've created a movie clip for a drop down menu for my navigation.

    It's basically an opening and closing shape tween onRelease. But my menus aren't opening and closing. That's all I'm trying to fix right now.

    The book I'm using Foundation Flash 8, has me putting the following script on my main timeline on a layer "Actions", Frame 1. This script points back to frame labels I've created for opening and closing on my subMenu movie clip.
    Here's for one button:
    btnHornet.onRelease = function() {
    ToOpen = "open hornet";
    if (userHasClicked == true) {
    subMenu.play();
    } else {
    subMenu.gotoAndPlay(toOpen);
    userHasClicked = true;
    }
    };

    I have this on my close frame on my subMenu movie clip:
    gotoAndPlay(_parent.toOpen);

    I can't figure it out, and better solutions?

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    your problem could be that you have spaces in your frame label - "open hornet"
    this is a big no-no in Flash, so change the frame label to - "open_hornet"

  3. #3
    Junior Member
    Join Date
    Oct 2006
    Posts
    1
    Just my two cents:

    If you are a professional do not re-invent the wheel, the fastest way to create flash menus or navigation is Flash Menu Factory.

    See: http://www.****************.com/

    IMHO, fiddling around with scripts, is not always the best solution when there is a tight schedule.

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