Detect local playback
If you want to know if the swf is running locally (in Flash's IDE) or in a webpage you can use this one liner:
isLocal = _url.indexOf("file") == 0;
isLocal will become boolean true or false. Leave a comment