Skip to main content
Inspiring
January 13, 2013
Answered

Removing EventListener of ENTER_FRAME

  • January 13, 2013
  • 1 reply
  • 559 views

Hi. How can I remove the EventListener of ENTER_FRAME?

This topic has been closed for replies.
Correct answer Ned Murphy

You'll have to show the code related to your problem.  It sounds like you have your listeners' Classes mixed up.... you somehow have a TimerEvent tied into an ENTER_FRAME

1 reply

Ned Murphy
Legend
January 13, 2013

Using the same line of code where you added the listener, in place of "addEventListener" substitute "removeEventListener"

Inspiring
January 13, 2013

I tried that. But flash is giving me this error:


1119: Access of possibly undefined property ENTER_FRAME through a reference with static type flash.events:TimerEvent.
Ned Murphy
Ned MurphyCorrect answer
Legend
January 13, 2013

You'll have to show the code related to your problem.  It sounds like you have your listeners' Classes mixed up.... you somehow have a TimerEvent tied into an ENTER_FRAME