Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

Animated pull down menu buttons don't work

I've created an animated pull down menu and while the animation is working swimmingly, I can't get any of my buttons to function correctly. I'm thinking it's because of the ActionScript that controls the movement of the pulldown is competing with the functionality of the button. Bottom line: I have no idea.

You can see what I'm talking about by going to http://www.specialpromotionsinc.com. The pull down menu is accessible by clicking on the "Country Showdown" link in the upper right hand corner. The buttons are revealed, but while I have them all programmed as buttons, you'll see how the whole area appears to be one big fat link.

Here's my code for the movie. What do I need to change in order for the buttons to function correctly?

Thanks!

on(rollOver){
      
      this.gotoAndPlay(2);
      
}

            
on(rollOut){
            this.gotoAndPlay(13);
}
Avatar of Tom Ray
Tom Ray
Flag of United States of America image

there are couple of things that could be happening. could you post the fla? i'd be happy to look at it.
Avatar of Bruce Gust

ASKER

www.specialpromotionsinc.com/Home.zip

Thanks for your willingness to help...
ASKER CERTIFIED SOLUTION
Avatar of Tom Ray
Tom Ray
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i really should proof BEFORE hitting send

"inside the movie clip on the main time line, made 'county showdown' and button
placed your rollover action there."


should be:

inside the movie clips time line, made 'county showdown' a button and placed your rollover action there.
I'm thinking we're gold.  Couple questions:

First off, I think I'm going to use what you've suggested. The reason I went with putting my commands to play and stop on the button's timeline is that it prevented the pull down from getting "stuck." By that I mean, if you move your mouse quickly over the pull down, sometimes it stalls and remains down when it should be returning to it's starting position.

What I had done was nowhere near as quality as what you've got here, but I was wondering if there was another measure that could be incorporated into your approach that would keep this thing from getting hung up. Also, on the button you have a command...

on (release) {
      //getURL("http://www.brucegust.com", "_blank");
      trace("trad");
}
 I'm not familiar at all with "trad." What is that?

Finally, you have the points. Thanks so much for your input. I've got another question that I've referenced below that I would welcome any input on.

Thanks!

https://www.experts-exchange.com/questions/22462293/Revolving-banner-with-speed-and-direction-control-much-like-Disney.html
i know what you mean. you can make the invisible button even bigger (giving more 'real estate' for the rollover action to be tripped) to try and avoid the menu from getting hung up. heck... its only on the one frame so you could make it fill the entire canvas if need be.

trace is a simple command that helps out in testing/debugging files. in this instance, if you were testing the movie locally, and you were to click on 'the traditional' button, you would see the 'output' window pop up and the word 'trad' would be there (trad was my lazy shorthand for 'traditional'). you'll notice i put traces in the other buttons as well. 'leg' for the legends buttons, 'work' for the 'how it works' button, and 'enter' for the 'how to enter' button. trace is a simple way of being able to check and see if a conditions exists, variables are updated or created, just about anything. read more about it here:
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary808.html