Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How will open a downloaded file without saving  RSS feed

Pramod Mehta
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am newly in Flex. I am facing following problem
At the time of download the file only Yes and No Button is coming in Alert box. I want 1 more button Open bcz I want to open downloaded file without saving.

So how will it happen ?

If anyone knows please reply.

Thanks in advance.

My code is as follows

private function downloadResultHandler(event:ResultEvent):void

ba=event.result as ByteArray;
if (ba == null)"Unable to download file", "Download Failed", Alert.OK, this);
else"Do you want to Save the file " + fileNameLbl.text, "Confirm Download", Alert.YES | Alert.NO , this, confirmHandler);


private function confirmHandler(e:CloseEvent):void
if (e.detail == Alert.YES)
downloadFileRef=new FileReference();, fileNameLbl.text);

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!