gpt4 book ai didi

javascript - 如何从 JavaScript 调用 FileReference.browse()?

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:51:59 25 4
gpt4 key购买 nike

我正在尝试从 JavaScript 调用 FileReference 类的 browse() 方法(用户单击使用 ExternalInterface 的文本以调用 Flash 中的方法)。

不幸的是,我收到一条错误消息,告诉我这必须是用户的直接操作(例如单击按钮)。我通过 Google 进行了搜索,发现这是 Flash 10 中的一项新安全功能。

我能找到的唯一解决方案是在文本上放置一个 Flash 按钮或隐藏一个 flash 按钮,这将调用 browse() 方法。

我希望浏览器只显示 JavaScript,所有 Flash 代码只从 JavaScript 调用。

有什么办法可以做到这一点吗?

非常感谢,鲁迪

最佳答案

The only solutions I could find was to put a Flash button or to have a hidden flash button over the text, that will call the browse() method.

那些唯一的解决方案。

关于javascript - 如何从 JavaScript 调用 FileReference.browse()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2908434/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com