But sometimes the same course will need to run locally or perhaps be published to a projector.
I'm using ExternalInterface.available to check if it is available. If it isn't then there is no ExternalInterface available then clearly there will be no LMS communication (the projector version).
But the other bits get tricky. When testing locally in the Flash IDE ExternalInterface.available returns true, but there is nothing to actually interface with.
create a js function that returns something. if your ExternalInterface.call fails to return the expected, the swf is not embedded by an html file.
That is what I had done. I was just wondering if anybody had any other good tricks. Thanks.