I had the same problem. In my case, the code was in a class the did not extend MovieClip. Extending it fixed the problem. Other people have suggested using the DepthManager class, but that did not work for me.
-----Original Message----- From: eric e. dolecki [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 17, 2007 8:53 AM To: Flashcoders mailing list Subject: [Flashcoders] Weird removeMovieClip problem Flash Player 9 r45 executable AS2 I am attaching 3 movieclips, then later need to remove them. No dice. This seems SO noob, but its not happening: for( var i=0; i<3; i++) { var clip:MovieClip = _root.attachMovie( "object_3D", "object_3D_" + i, i+40 ); // other normal stuff } then later I run this function: killCamera = function():Void { for( var i=0; i<3; i++ ) { _root["object_3D_"+i].removeMovieClip(); //Does nothing... clips remain } // Hmm... lets try this & make sure they are really there: for (prop in _root) { if( typeof( _root[prop] ) == "movieclip" ) { if( _root[prop]._name.indexOf("object_3D") != -1 ) { trace( _root[prop]._name ); // traces the instance name just fine... _root[prop].removeMovieClip(); // Does nothing... } } } }; These freaking clips stick around for some reason. ???
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com