ClickToGoToWebPage Error 1120
I am trying to add two buttons with hyperlinks to my project. I already created one that works perfectly. The issue is when i create the second one, for some reason it doesn't work after I add the second one. I made sure to have the Instance name correct and matching with the code, so I don't think its that.
Error code:
scene1, Layer 'Actions', Frame 360, Line 10, column 1 1120:Access of undefined property error movieClip_6.
This is the first link located on frame 1, that worked when I used it without the other one:
movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
}
This is the second code located on frame 360:
movieClip_6.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_9);
function fl_ClickToGoToWebPage_9(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
}
I have tried everything i could think of, with no luck.