Skip to main content
Participant
February 27, 2019
Answered

ClickToGoToWebPage Error 1120

  • February 27, 2019
  • 2 replies
  • 734 views

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.

This topic has been closed for replies.
Correct answer JoãoCésar17023019

Hi.

Try disabling the advanced layers mode in the Document Settings (Ctrl/Cmd + J) and see if it works.

Regards,

JC

2 replies

Participant
February 27, 2019

Thanks It worked!

JoãoCésar17023019
Community Expert
Community Expert
February 28, 2019

You're welcome!

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
February 27, 2019

Hi.

Try disabling the advanced layers mode in the Document Settings (Ctrl/Cmd + J) and see if it works.

Regards,

JC