Using ExternalInterface on a local machine

March 11th, 2008 . by polyGeek

A 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?

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Digg
  • Facebook

3 Responses to “Using ExternalInterface on a local machine”

  1. comment number 1 by: arif

    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?

  2. comment number 2 by: mikri

    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 :)

  3. comment number 3 by: Arif

    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

Name

Mail (never published)

Website

- Why ask? This confirms you are a human user!

   




© Copyright 2008 polyGeek.com / Dan Florio, All Rights Reserved Except Where Explicitly Stated
Web Developement Blogs - Blog Catalog Blog Directory
M2 Websites