Search code examples
actionscript-2google-swiffy

get a response from javascript in a google's swiffy content? (flash converted to html5)


I am trying to play with google's swiffy to convert as2 content into html5.

so far it has been amazing.

using getURL, I can make javascript calls.

But, will I be able to get sort of response from a server or javascript?


Solution

  • Yes. You can call stage.setFlashVars('response=10'); from the JavaScript after which _level0.response should be set in AS2. But getURL returns before _level0.response is set. So a you should wait a little bit with setTimeout or onEnterFrame.