  | |  | memory management - removeMovieClip / | memory management - removeMovieClip /
2004-02-23 - By ryanm
Back > If m has some event associated like onEnterFrame I delete the
> handler BEFORE deleting my instance like:
>
> delete m.onEnterFrame;
> delete m;
>
I believe that removeMovieClip cleans everything up for you. Of course
it only works for movie clips, but it should clean up any events or
properties attached to the clip.
ryanm
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104961
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |