我正在尝试使用 adobe 提供的外部接口(interface)从 javascript 访问 swf 函数,但出现以下错误。
SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller http://media.varheroes.com/flash/flashtest.swf cannot access http://apps.facebook.com/feline-frenzy/flashtest/.
at flash.external::ExternalInterface$/_initJS()
at flash.external::ExternalInterface$/addCallback()
at flashtest_fla::MainTimeline/frame1()
遗憾的是 apps.facebook.com 没有跨域政策。我的瑞士法郎和我的 DOM 躺在那里。
最佳答案
嵌入 Flash 时,您可以将 allowscriptaccess 设置为 always。
关于javascript - Flash 外部回调错误!,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2205847/