PDA

View Full Version : removeMovieClip doesn't work after a scrollPane has been placed on the stage


rsouthgate
07-14-2005, 12:43 PM
Hi,
I have some fairly straightforward classes that all operate fine when a scrollpane has not been placed on the stage.

But when I place a scrollpane on the stage the line

this._parent.popUp.removeMovieClip()

doesn't work. It isn't specific to the name of that clip either - all removeMovieClip calls seem to fail.

I've had a little look around and can find no mention of this as a bug so I assume it's something stupid I've done. Can anyone give me any pointers?

emergency_pants
07-14-2005, 01:09 PM
removeMovieClip() only works with clips which have been dynamically attached or loaded into your movie. To be able to dynamically remove a movie clip completely, you will need to dynamically attach it too:


this.attachMovie("myClipInstanceName", "myLibraryClip", this.getNextHighestDepth());
//
this.myClipInstanceName.removeMovieClip();