Topic: detection of movie clips with actionscript 2.0

hello i would to know how to detect a button i made as a movie clip as to witch frame is on. Also i need to send this to a php file for emailing.

thanks in advance