如何在Flex中获得HTML5 FileApi支持? [英] How can I have HTML5 FileApi Support in Flex?

查看:137
本文介绍了如何在Flex中获得HTML5 FileApi支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要Flex代码来支持HTML5 File API。因为我需要为那些不支持File API的浏览器支持File API功能。你有任何代码或链接?

在此先感谢...

解决方案 Flash File API 仅适用于AIR,因此不适用于基于浏览器的应用程序。 FileReference 可以在浏览器应用中使用,但取决于你明确要做的事情。

在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆