Detecting current frame number?

I have a movieclip placed in the main timeline. Inside that movieclip, there is another movieclip.
I need to know the current frame number of the inner movieclip when the animation is playing.
And report that current frame number back to the actionscript in the main timeline.
Anyone know how to achieve that? Thank you! :blush: