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

ExternalInterface error

Community Expert ,
Nov 28, 2010 Nov 28, 2010

Copy link to clipboard

Copied

I'm using a swf in an ExtendScript for Photoshop.  I've written this with CS3 on WinXP and it worked no problem.  Now with Win7 and CS4, I'm getting the error:

Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.

Any ideas on what I can look for to correct this?  Is there some special ActiveX plugin for IE8 that I need?  I've  checked to make sure activeX control was inabled in my browser.

TOPICS
ActionScript

Views

3.3K

Translate

Translate

Report

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
Community Expert ,
Dec 06, 2010 Dec 06, 2010

Copy link to clipboard

Copied

Well, I'm still getting the error, but I've made sure everything is in order that can be: activeX enabled for local use and Flash player trust file in proper place.  The swf is generated and it intergrated with Photoshop's UI.  Must be some bug in Flashes debugging process.  They need to recognize that External interface does not alway need to run in a browser.

Votes

Translate

Translate

Report

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 ,
Dec 06, 2010 Dec 06, 2010

Copy link to clipboard

Copied

Why not to check if ExternalInterface.available before executing code related to it?

Votes

Translate

Translate

Report

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
Community Expert ,
Dec 06, 2010 Dec 06, 2010

Copy link to clipboard

Copied

That works; although during the debugging with a trace statement it will say that ExternalInerface is unavailable.

Votes

Translate

Translate

Report

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
Community Expert ,
Dec 06, 2010 Dec 06, 2010

Copy link to clipboard

Copied

it's not available in the test environment because there's no wrapper (html) file embedding a swf in the test environment.  externalinterface allows communication between a swf and the file that embeds the swf.

Votes

Translate

Translate

Report

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
Community Expert ,
Dec 06, 2010 Dec 06, 2010

Copy link to clipboard

Copied

LATEST

Yes, but before, the swf wasn't generating properly.  Right now with it working, I'm getting a file size about 25K, before, I was getting one of only k1 or 2k, and it wasn't working in Photoshop's extendScript.  I think there was something I did that got it working, perhaps setting the browser to allow ActiveX for local files, but I'm not sure.

Also, when I was using CS3, I wasn't getting this error, when I debugged the file.

Votes

Translate

Translate

Report

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