Solved

flash menu: 2nd button doesn't work

Posted on 2007-03-19
5
175 Views
Last Modified: 2010-04-03
I am creating a flash menu with this tutorial:

http://www.tutorialized.com/tutorial/rollOver-buttons/22770

I really like it, but when I get to the second button, it doesn't work as you can see in my fla:

www.own-designs.com/djmark/flash/menu.fla

I need 5 buttons on the horizontal menu.

Thanks!
0
Comment
Question by:weikelbob
  • 3
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
Tom Ray earned 500 total points
ID: 18751839
both instances on the main timeline are named "button" when they need to have different instance names.

leave the home one as is.

change the bio button instance name to "button1"
and in the code for the bio button, change that to:

on (rollOver){
_root.button1.gotoAndPlay(2);
}
on (rollOut){
_root.button1.gotoAndPlay(11);
}

on (release) {
getURL("");
}

that will do it.
0
 
LVL 7

Author Comment

by:weikelbob
ID: 18751866
Awesome.

I'll get to work. Will be back.
0
 
LVL 7

Author Comment

by:weikelbob
ID: 18751873
Got it.

Thanks!!
0
 
LVL 11

Expert Comment

by:Tom Ray
ID: 18751877
then name subsequent button instance names "button2", "button3", etc... or whatever naming pattern suites you.

FYI:
in the code i gave you above, put your url back in, i removed it when i was testing.
0
 
LVL 7

Author Comment

by:weikelbob
ID: 18751895
OK. Sounds good.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

679 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