Re: [flexcoders] Re: File download from server

2009-02-06 Thread Paul DSa
I had the same problem with my app. Once we shifted to flash player 10 my downloads would keep giving the error. I¹d generate a file on the user click and then automatically start the download. From what I learnt it was a security thing added in, to start the download event it requires user

[flexcoders] Re: File download from server

2009-02-06 Thread oneworld95
Same solution: Ended up adding a button dynamically on the successful response from the server that the file was ready. Then the user clicks the just added [Download Zip] button to fetch the file. - Alex C --- In flexcoders@yahoogroups.com, Paul DSa dsapaul2...@... wrote: I had the same

Re: [flexcoders] Re: File download from server

2009-01-26 Thread Mika Kiljunen
Yep I have the same problem and get the same error. But funny enough, my app works perfectly with Flash Player 9, but fails with Flash Player 10 throwing Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a

[flexcoders] Re: File download from server

2009-01-26 Thread oneworld95
For whatever reason, setting content-disposition stuff didn't work for me and was running out of time. What I ended up doing was this, - User clicks a button to generate the file on the Java side and save it to the server. - In Flex, when server returns the usual XML response saying all is OK,

[flexcoders] Re: File download from server

2009-01-21 Thread valdhor
Once you create the zip file you need to return the correct headers to the browser so that the browser will pop up the dialog box asking the user what to do. I don't use Java - I use PHP. When the user clicks a button in Flex I create a new URLRequest and then navigateToURL. The PHP script