Search code examples
flashactionscriptxul

Embedded flash (with XUL) doesnt work without debug flash player


I've got a strange problem. I am making an actionscript movie for a XUL toolbar. My toolbar works great on my PC in mozilla. But when run on any other machine (with no debug flash player) it simply doesnt work and i have following exception:

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.

I run it on Mozilla 3.6

Again, my flash works correctly on my PC and is not working on the other PC. Flash Player 10 on both, mine is debug version.

UPD: finally it seems ExternalInterface is working but movie is not even close to be fully functional. It stops its work in some constant code line. I do not have any trace() calls etc...


Solution

  • sounds a little like a security sandbox error.

    are you running it locally or from the web?

    (this is the first I've heard of XUL, guess I've been under a rock)

    *edit

    in my experience flash player avoids allowing certain types of web access from the local machine if you run it from web server it should run fine.

    also it may need to be wrapped in an html to support the javascript calls through ExternalInterface

    if it's just you that needs to run it you might get it to work by lowering your flash security settings.

    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html#117502

    also, may i ask what you are using ExternalInterface for?