  | |  | memory management - removeMovieClip / | memory management - removeMovieClip /
2004-02-24 - By Rocchi Cesare
Back Cédric de Crozant wrote:
No, I didn 't work for me. Here you trace the reference to onEnterFrame.
In the past (pretty sure was with Player 6) I deleted both clip and
reference to clip. In this way I have lost the reference to onEnterFrame
but the function associated to it, if called previously (e.g. if there
wasn 't a stop in the first frame), kept on running.
Pretty strange behaviour of course, that 's why I proposed to delete
first the onEnterFrame and then the mc.
ps. if, be chance, I have time I can try to retrieve the example I
mentioned.
HTH,
-c.
> trace( "##START ");
> trace( "_global.myRef_mc= "+typeof _global.myRef_mc);
> trace( "onEnterFrame= "+typeof _global.myRef_mc.onEnterFrame);
> //
> _global.myRef_mc=this.createEmptyMovieClip( "my_mc ",10);
> trace( "##CLIP CREATED ");
> _global.myRef_mc.onEnterFrame=function(){};
> trace( "_global.myRef_mc= "+typeof _global.myRef_mc);
> trace( "onEnterFrame= "+typeof _global.myRef_mc.onEnterFrame);
> //
> _global.myRef_mc.removeMovieClip();
> trace( "##CLIP REMOVED ");
> trace( "_global.myRef_mc= "+typeof _global.myRef_mc);
> trace( "onEnterFrame= "+typeof _global.myRef_mc.onEnterFrame);
> //
> delete _global.myRef_mc;
> trace( "##REF DELETED ");
> trace( "_global.myRef_mc= "+typeof _global.myRef_mc);
> trace( "onEnterFrame= "+typeof _global.myRef_mc.onEnterFrame);
--
+-- ---- ---- ---- ---- ---- ---- ------+
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:105037
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |