In Director, there is a function called the environment that
among other things, returns whether you are running in a browser or
running an executable. Is there such a thing in Flash? I want to
trigger different code branches based on whether it is running off
a CD (executable) or if it running in a browser. Also, if there is
a solution, does it work across both Mac and Win?