Problem encountered in __flash__addCallback

I get the following error when launching the application in debug mode using Flash Builder:

The object does not support this property or method.

(Note that this error message appears in the browser.)

Here is the code where it occurs:

function __flash__addCallback(instance, name) { instance[name] = function () { return eval(instance.CallFunction("<invoke name=\""+name+"\" returntype=\"javascript\">" + __flash__argumentsToXML(arguments,0) + "</invoke>")); } } 

I have no idea where this code is located (except that this is not my code).

Does anyone know what's wrong here?

+6
javascript flash flash-builder
source share
5 answers

I had the same problem. The reason for my outbreak was that we added โ€œstopโ€ as an ExternalInterface callback. By changing this to stopMe or something that works for you, fix the problem.

This is my best guess, and from what I read on other threads, that IE8 and some versions of FireFox really dislike you, using certain words for callbacks. It looks like they see them as reserved words and block their use.

The only way to avoid these words. I did not see a specific list, but the following was mentioned:

  • the game
  • stop
  • pause
  • Length

Links drupal.org/node/746044 digitarald.de/forums/topic.php?id=315

+3
source share

What version of Flash builder are you using? Here are some debugging instructions for Flash Builder 4. I have not tried this, although I'm not sure if this will work in the context of the problem you are seeing.

http://help.adobe.com/en_US/flashbuilder/using/WS6f97d7caa66ef6eb1e63e3d11b6c4d0d21-7f07.html

If this does not help (perhaps due to an error from the browser), you can use the script debugger for IE, for example, using Visual Studio or through a third-party add-on (google debugbar for IE), etc. Again, not sure if this will help in the context of Flash. Firebug has support and / or extensions for tracking flash memory, but is not sure if it is available for debugging Flash in IE if the link above does not help.

Note that I believe there is now a free version of Visual Studio, but still the pain you have to install is just to debug client scripts in IE, as opposed to an easy to install add-on in firefox like firebug - if possible.

+1
source share

This is not a solution, but some information about the __flash__addCallback function. As far as I understand, this is one of the JavaScript functions that the Flash Player plugin adds to the surrounding HTML page for use in conjunction with ExternalInterface (for the connection between ActionScript and JavaScript).

I have not heard about this for a while, but a couple of years ago there were a lot of messages about similar errors in Internet Explorer (especially if swf was embedded in the form element, and if SwfObject was used),

So, if you are using IE and ExternalInterface, this might be something you need to pay attention to. Learn more about __flash__addCallback and more:

http://code.google.com/p/doctype/wiki/ArticleFixingFlashExternalInterface

+1
source share
  • Go to tools ( Alt + X ) and select "Management"
  • Disable Flash Shockwave Objects
+1
source share

I was getting the same error, especially with uploadify (jquery / flash plugin). The problem in my case was "&". symbol in the part of the data presented. (fixing these issues)

NTN

0
source share