Skip to main content
Inspiring
July 24, 2021
Question

A term is undefined and has no properties

  • July 24, 2021
  • 1 reply
  • 758 views

I have this error on this line

// listener
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);      <--- this is the line that has the error

 

These are the handles

// listener
private function frameHandle(event:Event):void {
if (isSystemPaused() == false) {
// basic
movingHandle();
actionHandle();
positionHandle();
updateMiniMap();
flyingHandle();
pushHandle();
updateHealthBar();
// attack
unitHitTestHandle();

This topic has been closed for replies.

1 reply

kglad
Community Expert
July 24, 2021

the problematic line of code needs to be in a class file that extends a displayobject (eg, a movieclip).

XerneyAuthor
Inspiring
July 24, 2021

it is

kglad
Community Expert
July 24, 2021

i found it and it just made it worse it makes more errors also none of my files have it in the constructor code so why would i need to add it if my other files work perfectly fine


put trace(this) just above the line with the error message and you'll see it's undefined.