ExternalInterface.call似乎是和宿主(ie等)js通讯的吧。 你这个mx:html控件是我记得是air才有的。 如果在air中as要和mx:html控件通讯,应该是这样吧: 比如mx:html控件的id="myHtml", 那么用myHtml.domWindow.jsMethod(); domWindow相当于js中的window, 也可以直接获取document,如myHtml.domWindow.document,和js获取元素一样。
可以用ExternalInterface.call方法
4,327
社区成员
9,103
社区内容
加载中
试试用AI创作助手写篇文章吧