Skip to main content
Inspiring
December 21, 2011
Answered

Remove a movieclip placed on the stage (not through actionscript)

  • December 21, 2011
  • 1 reply
  • 1090 views

I placed a movieclip on the stage, what functions are there to remove it?

removeMovieClip( target ); only seems to work on MCs which have been attached to the stage eg. attachMovieClip();

the _visible property keeps the movieclip there just keeps it invisible.

what completelly removes it?

it is called tankCPU

Thanks.

This topic has been closed for replies.
Correct answer Rothrock

You can remove them, but the problem is more likely to cause other problems. Generally it is better to leave the timeline things to the timeline and code things to the code.

myStageInstance.swapDepths(2);

myStageInstance.removeMovieClip();

Of course you don't want to already have something at a depth of 2. If the timeline loops the item will reappear -- or maybe it won't. It is really a bad idea. What ever you think it is going to do for you is probably handled better in a different way.

1 reply

Ned Murphy
Legend
December 21, 2011

I believe you can only use actionscript to remove objects that are added using actionscript.

Inspiring
December 21, 2011

Yeah I was a bit ambiguous. What I mean is: I placed 2 movieclips onto the stage without actionscript. Through actionscript how do you remove them? I DIDNT use attachMovieClip, I just placed them with the cursor onto the stage.

Ned Murphy
Legend
December 22, 2011

I understood your first post and the answer doesn't change... in short, as far as I know, you can't.