0

Chromeは、URLバーでswfファイルからJavaScriptに直接アクセスできるようにしたくありません(これがベストプラクティスではないことはわかっていますが、それが私が達成しようとしていることです):

与えられた:

/file.swf?cmd=alert();

次のコード (スニペット) を使用:

flash.external.ExternalInterface.call("eval", cmd);

This only works in Firefox and not in Chrome. I am taking this approach because in chrome the actionscript 2 way to run JS was to use getURL("Javascript:...., however this doesn't work in Chrome either anymore.

Is there a way around this (by calling the file directly in the browser as opposed to be embedded in a page?)- I have my reasons!

4

1 に答える 1