actionscript-3 - 如何在 Flash 的 FileReference.browse 对话框中将按钮标签从 "Save"更改为 "Open"

标签 actionscript-3 flash apache-flex

在 AS3 中,FileReference.browse() 函数始终具有“保存”按钮标签。事实上,该对话框的标题似乎是“选择要上传的文件...”,然后按钮标签显示“保存”,这非常奇怪。

有没有办法将按钮标签从保存更改为打开或其他内容?

底部的“另存为格式”下拉菜单也是如此。如果该对话框用于打开文件,则这是非常误导的。这是一个错误吗?

enter image description here

最佳答案

从这个文档来看,你似乎不能http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html#browse%28%29

这似乎只能在 Adob​​e AIR 中实现:

Note: The File class, available in Adobe AIR, includes methods for accessing more specific system file selection dialog boxes. These methods are File.browseForDirectory(), File.browseForOpen(), File.browseForOpenMultiple(), and File.browseForSave().

关于actionscript-3 - 如何在 Flash 的 FileReference.browse 对话框中将按钮标签从 "Save"更改为 "Open",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13270692/

相关文章:

flash - 使用loadCompressedDataFromByteArray加载声音并稍后播放?

actionscript-3 - 1119 :Access of possibly undefined property Click through a reference with static type Class

php - 如何创建和使用随机数

Haxe 中的 Flash 函数重载

c++ - 在网络浏览器中运行 C/C++ 代码?

javascript - 是什么触发了 ie 中对象标签的 onerror 事件处理程序?

javascript - 将数组值从 html 传递到 flash 数组

apache-flex - 在 Flex 4 中使背景图像居中

apache-flex - 在浏览器中捕获热键

php - 查找居住在指定距离之间的用户(使用用户的邮政编码)