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

柔情痞子 提交于 2019-12-22 13:07:35

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/9213225/get-a-response-from-javascript-in-a-googles-swiffy-content-flash-converted-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!