Hi All,
Can someone help me with this action scripting? All the buttons work and go to the different
frames on the timeline. However, the last frame (page) of my website has two buttons
- That needs to link to a website URL (button for now is called Symbol1)
- That needs to link to a an email (button for now is called Symbol2)
The code is at the very end. Neither is working. See Below:
Thank you!!!
stop();
monkey_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);
}
monkey_btn1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
gotoAndStop(1);
}
monkey_btn2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3);
function mouseDownHandler3(event:MouseEvent):void {
gotoAndStop(2);
}
monkey_btn3.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler4);
function mouseDownHandler4(event:MouseEvent):void {
gotoAndStop(3);
}
monkey_btn4.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler5);
function mouseDownHandler5(event:MouseEvent):void {
gotoAndStop(4);
}
monkey_btn5.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler6);
function mouseDownHandler6(event:MouseEvent):void {
gotoAndStop(5);
}
Symbol1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler7);
function mouseDownHandler7(event:MouseEvent):void {
navigateToURL(new URLRequest(“http://msdn2.microsoft.com/en-us/silverlight/default.aspx”));
}
Symbol2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler8);
function mouseDownHandler8(event:MouseEvent):void {
navigateToURL(new URLRequest(“mailto: info@blank.com”));
}