I want to call a Javascript function by flash, which I can do with ExternalInterface
, But the Javascript function takes a callback. Is this a way to give a flashbackback?
I have thought of something like this:
ExternalInterface.addClallback ("foo", function () {.. ..}); ExternalInterface.call ("thefunction", "foo");
But this will not work because the function
tries to foo ()
, while in fact it should SwfObject .foo ()
. The problem is this page and its javascript is not in my control (although I can actually request changes if necessary).
It relates closely.
With the same lines as the answer to the same question, you can do this:
ExternalInterface.addClallback ("foo", function () {/ * ... * /}); // Callback ExternalInterface.call ("function (function () {swfObject.foo ();})");
Comments
Post a Comment