PDA

View Full Version : How to get of rid of an instance of a movie clip?



lyman12
April 25th, 2002, 08:19 PM
Can someone tell me how to get rid of an instance of a movie clip in the following Scenario. I have tried several methods, e.g., setProperty _visible to false, and the setProperty _scale to 0 (below). But none of these methods really get rid of instance; it merely hides them.


if (_root.yellow, hitTest(_root.wall)) {
speedx = 0;
&nbsp &nbsp &nbsp &nbsp speedy = 0;
&nbsp &nbsp &nbsp &nbsp setProperty("_root.yellow", _xscale, 0);
&nbsp &nbsp &nbsp &nbsp setProperty("_root.yellow", _yscale, 0);
}


Thanks.

I am not Jubba
April 25th, 2002, 08:21 PM
removeMovieClip(_root.yellow)

upuaut8
April 25th, 2002, 09:19 PM
but that will only work if you've used duplicateMovie, or attachMovie to create it.

I am not Jubba
April 25th, 2002, 10:52 PM
oh. how about delete?

lyman12
April 25th, 2002, 11:18 PM
So any solution??


Lyman

upuaut8
April 26th, 2002, 12:19 AM
Create a frame where that movieclip does not exist and then have the play head go to that frame, OR use attachMovie(); to attach the movie clip to the main timeline and use the above method to get rid of it. As far as I know those are the only two methods.