Embed a click counter into flash advert

I just need to know the code for as2.0 to execute a php file, and from there the php file does the rest