Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
AS3? This isn't for a public web page, is it?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
It's still not working, I think there's some disconnect between the instacne name and the code.
Copy link to clipboard
Copied
Wait: I just turned off strict mode and it fixed it. Thanks!
Copy link to clipboard
Copied
Now the code just pauses the animation, what?!?
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
Hi.
Can you share your FLA so we can investigate it?
Regards,
JC