Basic button script not working
well i lied it works at first but then it stops
I have a flash site that has a presentation page it has a menu of two buttons (1) to take you to a slide show and (2) that takes you to the gallery. these are the only two buttons that seem to work in control test movie, I get no errors.
The only button that is connected is the slideshow button (I havent done the gallery yet). This button takes you to frame two. where i have the main website. it has its own menu that spans across the entire website which is 25 frames. each frame represents a new page. i have mini menus at frames 3, 5, and ten. that are supposed to just advance the user to correct frame labels and stop.
here is my problem
the only buttons that work are the ones in the first frames.
the rollovers appear to work on all the pages when i advance the movie using the [ . ] key but i get no trace statement witch means that it is not being acknowledged, all my buttons are named properly i believe so i do not know what the problem is, here is the code as well, all is in frame one:
stop();
//handle events for buttons...
Gallery.addEventListener(MouseEvent.CLICK, clickSection);
Home.addEventListener(MouseEvent.CLICK, clickSection);
Location.addEventListener(MouseEvent.CLICK, clickSection);
Guest.addEventListener(MouseEvent.CLICK, clickSection);
Lodging.addEventListener(MouseEvent.CLICK, clickSection);
Cuisine.addEventListener(MouseEvent.CLICK, clickSection);
ExploreEcuador.addEventListener(MouseEvent.CLICK, clickSection);
Direction.addEventListener(MouseEvent.CLICK, clickSection);
Home.addEventListener(MouseEvent.CLICK, clickSection);
Lodging.addEventListener(MouseEvent.CLICK, clickSection);
Amenities.addEventListener(MouseEvent.CLICK, clickSection);
Hotel.addEventListener(MouseEvent.CLICK, clickSection);
Coast.addEventListener(MouseEvent.CLICK, clickSection);
BahiaDeCaraquez.addEventListener(MouseEvent.CLICK, clickSection);
CentralBankMuseum.addEventListener(MouseEvent.CLICK, clickSection);
IslaCorazon.addEventListener(MouseEvent.CLICK, clickSection);
RioChone.addEventListener(MouseEvent.CLICK, clickSection);
Beaches.addEventListener(MouseEvent.CLICK, clickSection);
CaboPasado.addEventListener(MouseEvent.CLICK, clickSection);
LaSegua.addEventListener(MouseEvent.CLICK, clickSection);
CerroSecoPark.addEventListener(MouseEvent.CLICK, clickSection);
WhaleWatching.addEventListener(MouseEvent.CLICK, clickSection);
SeasonalTours.addEventListener(MouseEvent.CLICK, clickSection);
HomePage.addEventListener(MouseEvent.CLICK, clickSection);
Contact.addEventListener(MouseEvent.CLICK, clickSection);
//end of menu
function clickSection(evtObj:MouseEvent) {
//trace shows what is happening.. in the output window
trace ("The "+evtObj.target.name+" button was clicked!")
//go to the section clicked on...
gotoAndStop (evtObj.target.name);
}
Help me Adobe-wan, you are my only hope...
