Is it possible to use an external ExternalInterface page on Chrome Extensions?

Is using an ExternalInterface between a SWF attachment on background.html and background.html possible?

When createComplete is created, ExternalInterface.call ("alert", "test") is called, but nothing happens.

When background.html opens as a file, it works.

SWF and bacground.html are in the same directory.

Add SWF to the global security panel and flash.system.Security.allowDomain ("*");

Google Chrome is the latest version.

+3
source share
1 answer

.

Try:

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

js- background.html, .

0

Source: https://habr.com/ru/post/1780383/


All Articles