External API 在 IE 中有保留字

2007.04.1222:48

今天被这个郁闷了,原来 IE 中是有保留字的……

极其简单的一个 Flash 嵌入,Firefox 就一切正常,IE 死活报脚本错误,而且给出莫名其妙的行号和错误说明,对调试没有半点用处。

最后发现是 Flash 中的 ExternalInterfaceaddCallback 的时候用了一些保留字,我用的是 playstop,不知道还有没有别的,真是郁闷,要是都报错还好查一点,结果单单 IE 报错,ft。

猜想可能是和 IE 的 Flash ActiveX 对象自身提供的方法有命名冲突吧,记一笔,以后注意。

2 Comments Comment RSS »

The URI to TrackBack this entry is: http://old9.blogsome.com/2007/04/12/flash-external-api-preserved-keywords/trackback/

  1. 前段时间我也遇到这个问题,后面还是改成了fscommand来做的,请问下你是如何解决的?

    Comment by skyloafer — 2007.4.13 @ 08:50

  2. @skyloafer
    我就换了个名字,把 play 和 stop 换成别的了。老是报错原以为是 Javascript 的问题,结果居然问题出在 Flash 上。

    Comment by old9 — 2007.4.13 @ 11:33

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


为防评论机器人,劳驾您输入图片中的字符 :)
captcha