I went around this by showing a progress animation while the PDF was being generated. When the return result fires, I replace the progress animation with a "Download Now" button.
Lame, but more clean then an "Are You sure?" alert. --- In [email protected], "Battershall, Jeff" <[EMAIL PROTECTED]> wrote: > > Jason, > > I'm with you on this - I just posted on this minutes before you did. In > my case, I'm generating a PDF on the server side and listening for the > return event of that process and then initiating > FileReference.download(). Requiring that the save() or download() call > occur at the top level of the event handler is, in my opinion, just too > restrictive. > > Jeff > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Jason Ervin > Sent: Wednesday, November 12, 2008 11:32 AM > To: [email protected] > Subject: [flexcoders] Flash Player 10: FileReference.save Security User > event > > > Does anyone know if there is a way around the security feature of > FileReference that requires a user event in order to execute > FileReference.save? > > I have method that is called via a buttons click event, but this > original eventhandler function calls three more functions via callLater > (passing in the original event as an argument to callLater), but I still > get the error telling me that when calling FileReference.save it has to > be called because of a user event (gesture). > > I am I wrong to think that passing the initial click event along with > callLater should be enough to pass the security requirement? > > Thanks, Jason > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f- b4cf- > 1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links >

