I have a flash problem I can only click on one button and that's it. I have 5 buttons that go to different pages but if i click on, lets say the about button, it will go but that's it. I can't click on any other buttton. The code is below. I don't see what i'm doing wrong. Help is needed. Thanks!
stop();
home.addEventListener(MouseEvent.CLICK, gohome);
function gohome(MouseEvent):void{
gotoAndStop(1);
}
about.addEventListener(MouseEvent.CLICK, goabout);
function goabout(MouseEvent):void{
gotoAndStop(2);
}
history.addEventListener(MouseEvent.CLICK, gohistory);
function gohistory(MouseEvent):void{
gotoAndStop(3);
}
cast.addEventListener(MouseEvent.CLICK, gocast);
function gocast(MouseEvent):void{
gotoAndStop(4);
}
bios.addEventListener(MouseEvent.CLICK, gobios);
function gobios(MouseEvent):void{
gotoAndStop(5);
}
tickets.addEventListener(MouseEvent.CLICK, gotickets);
function gotickets(MouseEvent):void{
gotoAndStop(6);
}
You should become familiar what the Print Screen button on your keyboard.
The explanation and the picture you provided do not indicate what's what. If that layer labeled "menu" is where the buttons are, that it only occupies the first frame could be a good reason your buttons won't work in other frames - they aren't there.
I did a flash site for a play. I have 6 buttons at top labeled: Home, About, History, The Cast, Bios, The Tickets. I have all the buttons named and gave them a instance name. When I run the program I want to be able to go to the button I push. But when I run it, it starts up correctly but when I click on a button it freezes, I can still click on the other buttons but the pages don't change.
Thanks for any help!
Sent via the HTC Vivid™, an AT&T 4G LTE smartphone
North America
Europe, Middle East and Africa
Asia Pacific