  | |  | memory management - removeMovieClip / | memory management - removeMovieClip /
2004-02-23 - By Rocchi Cesare
Back
I tend to use the 'delete ' statement like:
var m = new MovieClip();
// stuff with m
delete m;
If m has some event associated like onEnterFrame I delete the
handler BEFORE deleting my instance like:
delete m.onEnterFrame;
delete m;
It works, somehow ... not always ... but the technique
slightly improves the performance of my app.
HTH,
-c.
--
+-- ---- ---- ---- ---- ---- ---- ------+
Cesare Rocchi
ITC-IRST Povo I-38050 (TRENTO) ITALY
http://tcc.itc.it/people/rocchi.html
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
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:104956
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |