• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How will open a downloaded file without saving

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
Alert.show("Unable to download file", "Download Failed", Alert.OK, this);
else
Alert.show("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();
downloadFileRef.save(ba, fileNameLbl.text);



}
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic