Detect When Flash Receives Focus

Hi,

What is the Actionscript 2.0 to detect Flash is in Focus / Out Of Focus?

Eg: Flash is in focus, trace(“In Focus”); Flash is out of focus, trace(“Out Of Focus”);

This has been racking my brain for ages!

Cheers,
Ryan