Solved

Animated pull down menu buttons don't work

Posted on 2007-03-22
6
213 Views
Last Modified: 2010-04-03
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);
}
0
Comment
Question by:brucegust
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 11

Expert Comment

by:Tom Ray
ID: 18774152
there are couple of things that could be happening. could you post the fla? i'd be happy to look at it.
0
 

Author Comment

by:brucegust
ID: 18774405
www.specialpromotionsinc.com/Home.zip

Thanks for your willingness to help...
0
 
LVL 11

Accepted Solution

by:
Tom Ray earned 500 total points
ID: 18775025
here you go:

http://www.tsquared.com/ee/home2.zip

removed actionscript from main time line on the movie clip

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

created an invisible button (rollout_but)

created a new layer for this button. this layer is behind your animation buttons. it is also larger than those buttons because once a user rolls onto this button (at which point they will be off any of the main buttons) this will trip the rollover action on the invisible button that tells the clip to move on and close.

i've commented out you get url and placed traces in each of those buttons for testing purposes

let me know if you have questions.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Expert Comment

by:Tom Ray
ID: 18775042
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.
0
 

Author Comment

by:brucegust
ID: 18782397
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!

http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_22462293.html
0
 
LVL 11

Expert Comment

by:Tom Ray
ID: 18782789
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
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flash player plugin 13 7 359
need a player that can play .d and .i DVR files 9 1,627
Failed download 57 593
Win XP's Chrome V27.0.1453.110 laptop gives blank/dark screen when playing 3 77
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question