如何在Flex中获得HTML5 FileApi支持? [英] How can I have HTML5 FileApi Support in Flex?
问题描述
在此先感谢...
在JavaScript和ActionScript之间进行通信;您可以使用 ExternalInterface 。
您可以使用ExternalInterface从ActionScript调用JavaScript函数。 关于这方面的信息。
您还可以使用ExternalInterface从JavaScript调用ActionSCript函数。 这是关于的一些信息。
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...
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.
这篇关于如何在Flex中获得HTML5 FileApi支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!