从闪存运行 Windows 命令
是否可以使用在桌面上播放的 Flash CS5 文档并使用 AS3 来删除本地 XML 文件的内容?
好吧,我做了一些研究,但仍然没有运气。我打算使用一个带有 Windows 命令的单独批处理文件来完成我需要的操作,但由于我将每秒调用一次 fscommand,因此 dos 窗口会弹出很多次。
是否有任何第三方插件可以允许 flash 运行 Windows 命令?
Is it possible to delete the contents of a local XML file using a Flash CS5 document being played on the desktop and using AS3?
Ok i have done some research but still no luck. I was going to use a separate batch file with a windows command that did what I needed but since I will be calling the fscommand once a second the dos window would pop up a lot.
Are there any thirdy party plugins that will allow flash to run windows commands?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
闪存是只读的。它无权在本地或服务器上创建、删除或以其他方式修改文件。典型的技术是将繁重的工作交给一些可以完成的技术,比如 php。
另一方面,AIR 确实可以访问类似这样的各种功能,甚至可以访问本机进程。如果您希望仅在客户端计算机上运行应用程序,那么它是一个很好的选择。
Flash is read-only. It does not have access to create, delete, or otherwise modify files locally or on a server. The typical technique is to pass the heavy lifting onto to some tech that does, like php.
On the other hand, AIR does have access to all manner of functions like this, even to native processes. If you are looking to run an application only on a client machine, its a great alternative.
您可能想查看 MDM Zinc;它是 Flash 内容的替代运行时,它提供了许多可通过其自己的 API 访问的附加功能,称为 {mdm}脚本。
You might want to check out MDM Zinc; its an alternative runtime for flash content which provides many additional features accessible via their own API, reffered to as {mdm}Script.