Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
memory management - removeMovieClip /

memory management - removeMovieClip /

2004-02-24       - By Rocchi Cesare

 Back
Reply:     <<     11  

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)