从JS的FileReference浏览,模拟按键preSS闪存解决方法 [英] fileReference browse from js, simulate keypress in flash workaround
问题描述
我想从Flash的SWF外调用FileReference.browse打电话,我读了一些文章,通常认为很IMPOSIBLE由于Flash 10的安全的东西..所以我想知道不是它更多钞票从JS发送命令到闪存哪些将模拟闪光灯,它(这个键preSS)内的一个关键preSS将触发的FileReference。
I am trying to call fileReference.browse from outside the flash SWF, i read some articles that said normally it's imposible due to Flash 10 security stuff.. so i was wondering isnt it posible to send a command from js to flash which will simulate a keypress inside the flash, which (this keypress) will trigger the fileReference.
感谢你在前进, 丹尼尔!
Thank you in advance, Daniel!
推荐答案
这是不可能的(它会造成很严重的安全隐患)。您可以通过检查使用Flash的的FileReference任何上传模块,在那里证实了这一点......所有的人都使用一个透明的Flash重叠式注册点击或上传按钮本身是一个可定制的SWF(直到最近Gmail的使用了透明的叠加,现在它使用本地上传我认为)。
It's impossible (it would create quite a serious security risk). You can confirm this by checking any uploader module out there that uses Flash's FileReference... all of them use either a transparent flash overlay to register the click or the upload button itself is a customizable SWF (until recently gmail used a transparent overlay, now it uses native uploads I think).
这篇关于从JS的FileReference浏览,模拟按键preSS闪存解决方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!