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.
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.
Copy link to clipboard
Copied
Why not to check if ExternalInterface.available before executing code related to it?
Copy link to clipboard
Copied
That works; although during the debugging with a trace statement it will say that ExternalInerface is unavailable.
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.
Copy link to clipboard
Copied
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.