开发者

Using ExternalInterface on Chrome Extensions background page possible?

Using ExternalInterface between SWF embed on background.html and background.html possible?

When creationComplete, ExternalInterface.call("alert", "test") is called, but nothing h开发者_运维问答appens.

When background.html open as file, it works.

SWF and bacground.html are in the same directory.

SWF add in Global Security Panel and flash.system.Security.allowDomain("*");

Google Chrome is latest version.


You have to make a function for the externalinterface to call.

Try:

ExternalInterface.call("function setLocation() {alert("Hello!");}");

or make a js function on your background.html that does the rest of the job for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜