Get a response from javascript on google swiffy content? (flash converted to html5)

I am trying to play with google swiffy to convert the contents of as2 to html5.

while it was awesome.

using getURL, I can make javascript calls.

But, can I get a response from the server or javascript?

+2
actionscript-2 google-swiffy
source share
1 answer

Yes. You can call stage.setFlashVars('response=10'); from JavaScript, after which _level0.response should be installed in AS2. But getURL returns before installing _level0.response . So you have to wait a bit with setTimeout or onEnterFrame .

0
source share

All Articles