Solved

Flash MX 2004: drop down menu

Posted on 2006-10-27
4
182 Views
Last Modified: 2011-09-20
Basically i create my drop down menu according to this site:
http://www.tutorialized.com/tutorial/Drop-down-Menu-for-MX/7200

It does work fine. My problem is:
when my cursor point to Button A, its submenu appears.
Then i move my cursor to Button B, submenu of Button B appears but submenu of Button A is not disappear. Sometimes it dissappear but sometimes not.

Anyone could help me? Or you do have better idea on doing this drop down menu. Pls kindly solve this matter for me.

Thanks in advance.
0
Comment
Question by:tloip
[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
  • 2
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 17820989
The tutorial is for building one button with drop-down
As you have built another (B) .. along with A .. the problem will be with the roll-off button.. it is only coded for one button.
You can fix this by giving each button an instance name .. say buttonA  and buttonB
then on the roll-off button..

on(rollOver){
   _root.buttonA.gotoAndStop(1);
   _root.buttonB.gotoAndStop(1);
}

as you roll off any part of either drop-down both buttons will be reset

Z



0
 

Author Comment

by:tloip
ID: 17825408
Thanks for helping me.

I tried to do it. Now, two menu list will not appeared at the same time.
but the problem is all the menu list can't dissappear at the same time.

I give instance name for both button (btn-snow2 & btn-school2 respectively).
I create different rolloff for each button with diff instance name (instance name of 1st rolloff is  "roll-back" - for 1st button,  instance name of 2nd rollof is "roll" - 2nd button)
For both Rolloff, i typed same function:

on(rollOver){
    _root.btn-snow2.gotoAndStop(1);
    _root.btn-school2.gotoAndStop(1);
   
}

Is it correct? Pls kindly adv..Thanks.
0
 
LVL 23

Accepted Solution

by:
Zeffer earned 250 total points
ID: 17826962
I tried making one of these and as you say.. and the original code is fine..one button works .. but it got as buggy as hell when more buttons are added.
The problem does lie with the rollout button and the trick is to surround the menus.. not have it in one piece in the background.. so we can forget the new coding I suggested.
Seeing i made one have posted it for you to look at.

www.redpearl.co.nz/ee/drop_down.zip

Z
0
 

Author Comment

by:tloip
ID: 17831131
Thanks Zeffer. Actually i can do it by using this over the weekend

on(rollOver){
    _root.btn-snow2.gotoAndStop(1);
    _root.btn-school2.gotoAndStop(1);
   
}

just that, i removed "_root.".


Million thanks... :-)

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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 how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses

632 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