AS2(!) : best crossbrowser way of calling javascript functions?

家住魔仙堡 提交于 2020-01-06 20:24:44

问题


I have a AS2 project here that makes some troubles on certain browsers.

Can someone tell me, what's the most crossbrowser compatible way to call javascript functions out of a AS2 project (compiled for Flashplayer 8)?

GetURL or ExternalInterface.call?

What to pay attention to?

Sorry if the question is somewhat ambiguous, but i don't want to track a specific bug, just to find another one appearing with some other browser then.

thanks!


回答1:


I've used both without any issues in a wide range of browsers. My personal preference is for ExternalInterface if the user's Flash Player version is up to it. Because of the 'callback' functionality it can also be used more flexibly.



来源:https://stackoverflow.com/questions/9426069/as2-best-crossbrowser-way-of-calling-javascript-functions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!