How to get of rid of an instance of a movie clip?

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. \r\r\rif (_root.yellow, hitTest(_root.wall)) {\r speedx = 0;\r&nbsp &nbsp &nbsp &nbsp speedy = 0;\r&nbsp &nbsp &nbsp &nbsp setProperty("_root.yellow", _xscale, 0);\r&nbsp &nbsp &nbsp &nbsp setProperty("_root.yellow", _yscale, 0);\r}\r\r\rThanks.


but that will only work if you’ve used duplicateMovie, or attachMovie to create it.

oh. how about delete?

So any solution??\r\r\rLyman

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.