在__flash__addCallback中发生问题 [英] Problem occurring in __flash__addCallback

查看:196
本文介绍了在__flash__addCallback中发生问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


对象不支持此属性$ b在运行应用程序时,出现以下错误: $ b或method

(请注意,此错误讯息来自浏览器。)




$ b pre $函数__flash__addCallback(实例,名称){
instance_CallFunction(< invoke name = \+ name +\returntype = \javascript\>+ __flash__argumentsToXML (arguments,0)+< / invoke>));




$ b

我不知道这段代码在哪里(除了这不是我的代码)。



任何人都知道这里出了什么问题?

解决方案

这是我最好的猜测,从我读过的其他线程看,IE8和一些版本FireFox真的不喜欢你使用某些字回调。就像把它们当作保留字一样,并阻止你使用它们。

唯一的方法是不要使用这些单词。我还没有看到具体的列表,但提到以下内容:
$ b


  • 播放

  • 停止

  • 暂停

  • 长度
    b $ b drupal.org/node/746044
    digitarald.de/forums/topic.php?id=315


    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?

    解决方案

    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

    这篇关于在__flash__addCallback中发生问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆