Convert code for a button to On Frame

Hi all.
AS2
CS3

I have the code figured out for how to make Flash do what I want >> If I wanted this to be activated “On Click”
…like click the image, and have “THIS” happen.

problem is I need code that will have the same effect but will activate ONCE FRAME 10 is reached in the movieclip that is playing.

does anyone know how to write it so that it will work like this?

Below is the code that works for the button.

Thanks!
James Attach Code
btn_TEST_mc.onPress = function() {
_parent.imgholder_mc.unloadMovie();
};