Upload and download require user interaction
In Flash Player 9, ActionScript could perform uploads and downloads at
any time. With Flash Player 10, the FileReference.browse and
FileReference.download operations may be initiated only through
ActionScript that originates from user interaction. This includes
actions such as clicking the mouse or pressing the keyboard.
What is impacted?
This change can potentially affect any SWF file that makes use of
Filereference.browse or FileReference.download. This change affects
SWF files of all versions played in Flash Player 10 beta and later.
This change affects all non-app content in Adobe AIR (however, AIR app
content itself is unaffected).
What do I need to do?
Any existing content that invokes a browse dialog box using
Filereference.browse or FileReference.download outside of an event
triggered by user interaction will need to be updated. The dialog box
will now have to be invoked through a button, keyboard shortcut, or
some other event initiated by the user.
var urlReq:URLRequest = new URLRequest(“http://www.myUrl.com/file”);
WorkAround Method :
private function Flash10Workround():void
popup= new Somepopupcustomobject();
popup.LABEL=”File is Ready to Exported, Please Click Ok to continue”;
private function closePopUp(e:MouseEvent):void
var urlReq:URLRequest = new URLRequest(“Ur Link here”);