actionscript-3 - Actionscript 3.0 打开 Windows 资源管理器

标签 actionscript-3 actionscript

所以今天早上和昨晚我几个小时一直在努力寻找这个问题的答案。提前致谢。我一直在尝试通过单击按钮打开本地文件夹,但 ActionScript 不正确。我猜因为 getURL 在 AS3 中已经过时了。但我的脚本的其他部分都是 AS3,所以我不能只使用 AS2。

谁能给我一个解决方案吗?

此外,我已经使用了 URLRequest 方法。最终在我的网络浏览器中打开“C:/...”,如您所见,这不是我想要做的。

最佳答案

您需要制作一个Air App,然后您才能访问NativeProcess( http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeProcess.html )

使用 NativeProcess 类,您可以调用 Windows 资源管理器。

ndm建议代码:

var f : File = new File("c:");
f.openWithDefaultApplication();

关于actionscript-3 - Actionscript 3.0 打开 Windows 资源管理器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20071755/

相关文章:

javascript - SetVariable 在 FireFox 中有效,但在 Internet Explorer 中无效?

javascript - JS/Flash - 拖动包含 img 的 anchor vs 拖动不带 anchor 的图像 - 如何获取 anchor 内的 img?

flash - 在页面离开时运行代码 [Actionscript]

apache-flex - 为什么在 ActionScript 中将日期转换为日期会失败?

flash - Actionscript:图像到base64 字符串可能吗?

actionscript-3 - 初始化函数的目的

android - Android Nexus 7 上的 StageVideo 显示黑色方 block

ActionScript 中的 JavaScript 警报

flash - 如何在 ActionScript 中同步多个视频流?

actionscript-3 - 哪些设备支持 adobe air?