This is my first time posting here and i'm a beginner in flash

I made a death animation for an enemy in a game I'm making and the idea is that once the animation is done, flash will unload the movieclip using the unloadMovie function.

Is there a function that would check what frame the movieclip is on so I can despawn the enemy using an if/then statement?