Why is it when I attach a movie to the stage using the attachMovie function or create a movie clip dynamically using createEmptyMovieClip and the drawing API the movie clips stays visible when I change between frames.
Example Code – Frame 1
_root.attachMovie(“mc”,“mc”,2)
_root.createEmptyMovieClip(“square”,1)
stop();
square.moveTo(0,0)
square.lineStyle(1,0,100);
square.lineTo(100,0)
square.lineTo(100,100)
square.lineTo(0,100)
square.lineTo(0,0)
onMouseDown = function()
{
gotoAndStop(2); // Still visible?
}
So why do they stay visible when I change frames?