Skip to main content
Participant
January 30, 2020
Question

Custom Cursor error in Animate

  • January 30, 2020
  • 1 reply
  • 763 views

Hello, I'm trying to make a custom cursor for my project in actionscript and I'm having a bit of problem with the codes. The custom cursor works fine until I turn on the camera. The project is to make an interactive comic and the camera moves around the panels, and for this one specific panel I wanted to change the cursor for the interaction. The cursor changes just fine but as soon as I publish it with the camera on I get a 1120: Access of undefined property error. The error doesn't pop up if I publish it without the camera. Is there a way I can fix this?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 30, 2020

you have a reference change.  on the custom cursor's timeline put:

 

trace(this)

 

to see its reference and how it changes when you enable the camera.

 

https://community.adobe.com/t5/animate/debugging-actionscript-3-0-errors/td-p/4788610?page=1

Participant
January 30, 2020

hello, thank you for taking your time answering my question, but I'm not sure if I follow, I just started learning how to use animate and we barely learned anything so I barely have knowledge about coding. I've tried reading the linked source but it was very difficult to understand. If you can, may I request some elaboration on this?

kglad
Community Expert
Community Expert
January 30, 2020

on the custom cursor's timeline put:

 

trace(this);

 

1. what do you see in the output panel?

2. what code are you using that's triggering the 1120 error?