PDA

View Full Version : removeMovie();



jose3760
February 9th, 2008, 05:49 PM
Hello, Im having trouble figuring out how to remove an attached movieclip (Code below for attaching). Its being attached inside of a function on the frame, and needs to be removed inside of another function.



_root.powerup = this.attachMovie("powerup", "powerup", -2);



Thanks,
Joseph

bluemagica
February 9th, 2008, 05:58 PM
i would suggest using a different name for the instance... and to remove it use unloadMovie()

ex:

on (press) {
this.unloadMovie()
}


and i think you are trying to do removeMovieClip()

jose3760
February 9th, 2008, 08:17 PM
Thanks!
That worked, i just changed it up a tad to fit in the fucntion and it works just fine.