Using ExternalInterface on a local machine
March 11th, 2008 . by polyGeekA reader emailed with a problem he’s having with the ExternalInterface. It seems that his code works fine when the page is hosted on a server but doesn’t work sometimes when accessed directly on the PC. ( Meaning opening the file locally in the browser with a C://path/filename. )
I seem to recall some issues that I had in the past but I haven’t worked with the ExternalInterface in over a year.
The error he gets is: Object or property is not supported.
The reader who asked the question said that he found no mention online nor in the documentation about this. Anyone out there know what’s the what?












Hi,
I am the person Dan is talking about.
I have a swf file in which i have a function say myFunction, which can be called from a java script,, because i have declared myFunction as ExternalINterface call back method.
When i host this swf file and its fellow html file on a webserver it works perfectly fine, but when i try to run it locally( in same browser as before) using
say c:\myswf\myswf.htm , it doesn’t work,
and give a warning “Object or property is not supported.”
anyone has clue what’s happening out there?
Most probably you have to change security settings. Or check if allowscriptaccess helps e.g. http://blog.guya.net/2006/06/19/understanding-flash’s-externalinterface/
Weird if it happens only sometimes. Perhaps use Uniformserver or similar for testing :)
Yeah , man i am aware about the security settings.
If It was a problem with security settings , it gives
error “Object or method not supported”
But in my case, I dot not see even flash content getting loaded, I just see blank Div and no Flash content, we can’t also say that browser may not have the flash player installed, because it works when
we run from web server. I remember seeing this problem in Firefox and Safari at least.
Leave a Reply