Skip to main content
Participant
March 20, 2014
Question

delete onEnterFrame fails

  • March 20, 2014
  • 1 reply
  • 312 views

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

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 20, 2014

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.