0
delete onEnterFrame fails
Explorer
,
/t5/animate-discussions/delete-onenterframe-fails/td-p/5954783
Mar 20, 2014
Mar 20, 2014
Copy link to clipboard
Copied
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/delete-onenterframe-fails/m-p/5954784#M209149
Mar 20, 2014
Mar 20, 2014
Copy link to clipboard
Copied
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more