Solved

flash menu: 2nd button doesn't work

Posted on 2007-03-19
5
188 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
[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
  • 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

617 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