Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem occurring in __flash__addCallback

I am getting the following error when running an application in debug mode using Flash Builder:

Object does not support this property or method

(Note that this error message is coming from the browser.)

Here is the code where it is occurring:

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 it's not my code).

Anyone know what's going wrong here?

like image 701
Paul Reiners Avatar asked Jan 24 '11 19:01

Paul Reiners


1 Answers

I had the same problem. The cause was in my flash we were adding "stop" as a callback to the ExternalInterface. Changing this to stopMe or whatever works for you, corrected the issue.

It is my best guess and from what i've read on other threads that IE8 and some versions of FireFox really don't like you using certain words for callbacks. Its like its treating them as reserved words and blocking your use of them.

The only way around this is to not use those words. I haven't seen a specific list, but the following have been mentioned:

  • play
  • stop
  • pause
  • length

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

like image 129
Emile Avatar answered Sep 18 '22 02:09

Emile