I've been following a tutorial found at this link: http://www.extremestudio.ro/blog/?p=910. Even with the stop code, the fade effect kind of flashes when I roll over it. I duplicated the symbols, but now when I roll over them, the text changes even though I want four different buttons: Home, About, Menu, Contact.
Can anyone help me out? I can also send my Flash file. It wouldn't let me attach it to the comment. I'm very frustrated because I know it should be simple.
Did you download the files from the tutorial? If you look at those, you'll see that each button is a unique element in the Library for the movie. Each button is a separate button object. Each button is made up from the movieClip's that are also in the Library.
Look at each button, you should be able to sort out the parts that you need for each of your buttons.
This is my code:
stop();
home_btn.addEventListener(MouseEvent.CLICK, HomeListener);
function clickHomeListener(event:MouseEvent)
{
gotoAndStop("home");
}
about_btn.addEventListener(MouseEvent.CLICK, AboutListener);
function clickAboutListener(event:MouseEvent)
{
gotoAndStop("about");
}
menu_btn.addEventListener(MouseEvent.CLICK, MenuListener);
function clickMenuListener(event:MouseEvent)
{
gotoAndStop("menu");
}
contact_btn.addEventListener(MouseEvent.CLICK, ContactListener);
function clickContactListener(event:MouseEvent)
{
gotoAndStop("contact");
}
I keep getting this error message:
Scene=Scene 1, layer=actions, frame=1, Line 3 The class or interface 'MouseEvent' could not be loaded.
Scene=Scene 1, layer=actions, frame=1, Line 8 The class or interface 'MouseEvent' could not be loaded.
Scene=Scene 1, layer=actions, frame=1, Line 13 The class or interface 'MouseEvent' could not be loaded.
Scene=Scene 1, layer=actions, frame=1, Line 18 The class or interface 'MouseEvent' could not be loaded.
North America
Europe, Middle East and Africa
Asia Pacific