Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ExternalInterface sometimes...others running local

LEGEND ,
Apr 18, 2013 Apr 18, 2013

So I'm developing web-based training which will eventually go into a learning management system. When it is in the LMS we will use ExternalInterface and Javascript to communicate with Flash.

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.

Any suggestions on how to know if there actually is javascript to help me out and communicate with the LMS?

Thanks.

TOPICS
ActionScript
709
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 18, 2013 Apr 18, 2013

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.

Translate
Community Expert ,
Apr 18, 2013 Apr 18, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 19, 2013 Apr 19, 2013
LATEST

That is what I had done. I was just wondering if anybody had any other good tricks. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines