关于在 Flash 10 中读取文件的问题

发布于 2024-08-28 11:50:32 字数 370 浏览 8 评论 0原文

我想读取用户计算机上的 xml 文件(可能很大)。我没有必要将文件发送到服务器,因为我可以在客户端计算机上对文件执行所需的所有工作。不过不确定这是否合适,想知道在我深入之前是否有人可以回答这些问题:

  1. 我在 adobe 的网站上看到 Flash 10 的渗透率约为 94%,这是真的吗,我以为它刚刚发布不久前?
  2. 在 Flash 中打开 xml 文件后,是否可以将其扔到同一页面上的 JavaScript 函数中进行进一步处理?我想进入Flash世界的时间尽可能短。
  3. 使用 Flash 进行文件上传很常见吗?我听说 aol/flickr 是?
  4. 我需要购买闪存才能正确执行此操作,他们还没有免费的 ide/编译器?

谢谢

I'd like to read an xml file on a user's machine (which can be kind of large). There's no point in me sending the file to my server as I can do all the work I need on the file right on the client's machine. Not sure if this is a good fit though, was wondering if anyone can answer these questions before I dive in:

  1. I see at adobe's website that Flash 10 has like 94% penetration, is this true, I thought it was just released not too long ago?
  2. After opening the xml file in flash, is it possible to just throw it to a javascript function on my same page for further processing? I'd like to go into flash world for as short a time as possible.
  3. Is it at all common to use flash for file upload stuff? I heard aol/flickr are?
  4. I would need to buy flash in order to do this right, they don't have a free ide/compiler yet?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少跟Wǒ拽 2024-09-04 11:50:32
  1. 就渗透率而言,我相信 Adob​​e 的数据。由于他们已经实现了快速安装/升级,因此对于大多数人来说更新他们的 Flash 播放器非常容易。如果您希望需要 Flash 10,并让它自动提示用户升级,请查看类似 SWFObject 的内容(用户所要做的就是单击“确定,升级”按钮。然后 Flash 将自动下载并安装更新)。
  2. 是的。您想要查看 ExternalInterface 类在AS3中。
  3. 是的。 Gmail 也使用 Flash 来实现此目的。唯一合理的替代方案是 Java(或者 HTML 文件 API,它在大多数浏览器中都得到支持,但距离还有些遥远)。
  4. Flex 编译器是免费的。我没有使用 Flex 的经验,但您当然可以在 Flex 中做到这一点。我用的是Flash IDE,但是要花钱。
  1. I would trust Adobe's numbers as far as penetration goes. Since they've implemented express installation/upgrading, it's been very easy for most people to update their flash player. If you want to require Flash 10, and have it automatically prompt the user to upgrade, look into something like SWFObject (all the user has to do is click the "okay, upgrade" button. Flash will then automatically download and install the update).
  2. Yes. You want to look at the ExternalInterface class in AS3.
  3. Yes. Gmail also uses Flash for this purpose. The only other reasonable alternative is Java (or the HTML File API once that gets support in most browsers, but that's a little ways away).
  4. The Flex compiler is free. I have no experience with Flex, but you could certainly do this in Flex. The Flash IDE is what I use, but costs money.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文