Quick help with removeMovieClip

Hi, simple question. I thought I had this working but I changed something somewhere and it stopped.

I have a mc and when it is finished playing it needs to remove itself. So in the mc’s timeline I have on, say frame 40, these 2 lines of code

stop();
removeMovieClip(this);

Any ideas why this doesnt work and what I should use instead?
thanks