removeMovie();

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