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.
精彩评论