Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Removing EventListener of ENTER_FRAME

Explorer ,
Jan 13, 2013 Jan 13, 2013

Hi. How can I remove the EventListener of ENTER_FRAME?

TOPICS
ActionScript
525
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 13, 2013 Jan 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

Translate
LEGEND ,
Jan 13, 2013 Jan 13, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 13, 2013 Jan 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 13, 2013 Jan 13, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines