How can I have HTML5 FileApi Support in Flex?

人走茶凉 提交于 2019-12-24 11:34:13

问题


I need Flex code to support HTML5 File API. Because I need to support File API feature for those browsers that did not support File API. Do you have any code or link?

Thanks in advance...


回答1:


I a few things to say. First most of the Flash File API is AIR only, so will not work in a browser based application. FileReference will work in a browser app, but depends on what you're trying to do explicitly.

To communicate between JavaScript and ActionScript; you can use ExternalInterface.

You can use ExternalInterface to call JavaScript functions from ActionScript. Info on that.

You can also use ExternalInterface to call ActionSCript functions from JavaScript. Here is some info on that.



来源:https://stackoverflow.com/questions/9139991/how-can-i-have-html5-fileapi-support-in-flex

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