Reference To Frame Number

Hello All,

Im trying to control a movieClips time line according to what frame this movieClip is in. Im trying:

this.onRollOut = function() {

if ( _parent.movieClip.currentFrame < “10”) {
_parent.movieClip.gotoAndPlay(20);
}
else {
_parent.movieClip.play();
}

It’s a total shot in the dark so i expected it to not work. But can anyone tell me how I can achieve this control??

Its a dropdown menu that appears when a button is rolled over. I want the menu to stay until I roll out, then it goes to an outro animation.

any ideas?