Skip to main content
Participant
December 16, 2020
Question

Problem with Actionscript 3. Access of undefined property.

  • December 16, 2020
  • 3 replies
  • 789 views

Hello there. I am new to animating. I have this cartoon I want to add Actionscript to. I am working in Actionscript 3.

 

Here is my code.

 

thescreet.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_8);

function fl_ClickToGoToWebPage_8(event:MouseEvent):void
{
navigateToURL(new URLRequest("https://homestarrunner.com/"), "_blank");
}

 

It keeps giving me the error "1120: Access of undefined property thescreet." for the first line, first word.

 

I have triple checked now and everything is spelled correctly. If anyone could help, it would be a great help.

 

Thanks!

This topic has been closed for replies.

3 replies

JoãoCésar17023019
Community Expert
Community Expert
December 18, 2020

Hi.

 

Can you share your FLA so we can investigate it?

 

Regards,

JC

Participant
December 18, 2020

In ActionScript settings my options have Strict Mode off, everything else on. It is no longer giving me the error, but it just pauses the animation once you get to there. I'm just going to give up and replace the code with something different for the sake of my sanity!

Legend
December 16, 2020

AS3? This isn't for a public web page, is it?

AdrianaCampolina
Participating Frequently
December 17, 2020

Hello Jaxson5C7C, I did the test here with your code and it worked perfectly. Check that you have correctly placed the name on the Button or MovieClip symbol that performs the action, (Remember that the symbol cannot be a "graphic", must be of the type "Button" or "MovieClip" and must be "named" correctly in the "Properties" Panel: https://www.facebook.com/groups/AdobeAnimateTutorials

 

 

Participant
December 17, 2020

It's still not working, I think there's some disconnect between the instacne name and the code.