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