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

delete onEnterFrame fails

Explorer ,
Mar 20, 2014 Mar 20, 2014

Hi,

Based on the AS Docs (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/2/help.html?content=00000700.html) a delete statement may fail.

In our code

  • at sometime, we assign the onEnterFrame event handler of a MovieClip to a function in order to blink a value on a tooltip
  • at a later time, we use the delete statement (delete mc.onEnterFrame) in order to stop the blink

Sometimes the delete statement fails and the blink goes on. It has been reported by the users but we were unable to reproduce the problem.

When a delete.onEnterFrame may fail and how easy is it to reproduce something like this?

Thank you in advance,

Bill

TOPICS
ActionScript
290
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
Community Expert ,
Mar 20, 2014 Mar 20, 2014
LATEST

i've never seen the problem as long as mc continues to exist and its reference is not confounded.  ie, make sure mc still exists and make sure you do NOT create another reference to mc when another mc and mc.onEnterFrame exist.

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