Frames

How can you tell if you are in a certain frame in the actionscrip?

if(_currentframe == 10) {
do sumthin’
}

this detects if it’s in frame 10!