  | | | attached Movie Clip not removing | attached Movie Clip not removing 2004-03-12 - By Joe Mease
Back Are you making use of the return value of the attachMovie method?
The best way to manage an attached movieclip is to store a reference on creation(returned from the attachMovie call), and forget about the name of the clip, or the level it was on.
myAttachedMovie = this.attachMovie("linkedMovie", "someNameIWillNeverNeed", someRandomLevel);
myAttachedMovie.removeMovieClip();
Should be a no brainer at this point..
Joe
> -- --Original Message-- -- > From: John Grden [mailto:JohnG@(protected)] > Sent: Friday, March 12, 2004 6:51 PM > To: flashcoders@(protected) > Subject: [Flashcoders] attached Movie Clip not removing > > > I'm attaching a movie clip from the library that has an AS2.0 > class assigned to it. Then, I'm loading an SWF inside of it > (which happens to have a sub movieclip using a class file as > well - but I don't think that's important > here) > > When I call removeMovieClip() to remove the top level clip, > it won't remove it. I've also tried unloadMovie, which does > remove the contents, but I need to get rid of the container > instance and properties as well, which is what removeMovieClip does. > > Anyone come across this and know what's going on?? > > John Grden > Senior Flash Developer > Blitz Digital Studios > > [e] John@(protected) > [c] 714.326.7211 > [w] www.BlitzDS.com > > [a] Blitz DS > ??? 11336 Camarillo Street > ??? Suite 200 > ??? North Hollywood, CA 91602 > > > > > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > -- ------ > 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:106820 > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > -- ------ > To unsubscribe send a blank e-mail to: > Normal Mode: flashcoders-unsubscribe@(protected) > Digest Mode: flashcoders-digest-unsubscrive@(protected) >
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- 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:106823 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |