File downloads not working in chrome which have Pepper-Flash 11.8.800.115

蓝咒 提交于 2019-12-08 07:08:39

问题


Users unable to download files through our flex website using Chrome which have Pepper Flash player plug-in. Downloads no longer working in Chrome from a navigateToUrl call in Flex. However if i disable the pepper flash plug-in in chrome then it works fine. Do you guys know any workaround to this issue?


回答1:


Had the same issue. Try use ExternalInterface.

In html in the JS section:

function downloadFileFromAS( _fileURL ) {
    window.location.href=_fileURL;
}

In AS3:

if( ExternalInterface.available ) {
    ExternalInterface.call( "downloadFileFromAS", fileUrlGoesHere );
}

Remember to set allowscriptaccess = "always" in html

It looks like it works at least for me.

Greg



来源:https://stackoverflow.com/questions/18568393/file-downloads-not-working-in-chrome-which-have-pepper-flash-11-8-800-115

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!