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
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
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
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,
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
Thanks... actually i want to klnow how to chage the type of the
file..
*.ppt .jpeg etc by default downlaod window shows
filename: user given name
saves as type: ALlFiles(*.*)
I want save as fiel to be chaged the way we can change file name at
runtime
--- In flexcoders@yahoogroups.com, Cato
fr.download('your file url', 'your_variable this will bee the new
name on the file you downloade');
--- In flexcoders@yahoogroups.com, shekharsinbox
[EMAIL PROTECTED] wrote:
Hi ,
I am using filerefrence.download() to download a file.
filereference.browse allows to filter the
One way to get the Open/Save dialog is to have your Flex control link
to a server-side URL that sets the Content-Disposition header to
something like attachment; filename=myFile.pdf. You should also set
the content type to the appropriate value based on the type of file
ding downloaded. How
For anyone who may not have found the answer to this problem, I am
pretty certain this will solve your problems:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=3637d5c3
TJ
--- In flexcoders@yahoogroups.com, Dimitrios Gianninas
[EMAIL PROTECTED] wrote:
I have the code below to
[mailto:[EMAIL PROTECTED] On Behalf Of
dubreeze2001
Sent: Tuesday, December 12, 2006 10:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: file download doesnt work?
Dimitrios,
This should work for you:
import flash.net.*;
var url:String;
url=http://localhost:7001/billing/servlet
@yahoogroups.com
Sent: Wednesday, December 13, 2006 1:06:02 AM
Subject: RE: [flexcoders] Re: file download doesnt work?
Close, now my servlet gets called, but the flash player
never prompts me where to save my file, so in essence, nothing is
downloaded.
Maybe my
Subject: [flexcoders] Re: file download doesnt work?
Dimitrios,
This should work for you:
import flash.net.*;
var url:String;
url=http://localhost:7001/billing/servlet/FileSvlt?operation=
http://localhost:7001/billing/servlet/FileSvlt?operation=
;
url +=DOWNLOADfileId=2;
var
So does:
req.url = http://localhost:7001/billing/servlet/FileSvlt;;
mean that your client and server are one and the same? Does it work
if you use a DNS name or IP instead of localhost?
--- In flexcoders@yahoogroups.com, Dimitrios Gianninas
[EMAIL PROTECTED] wrote:
Yup tried that too...
Dimitrios,
This should work for you:
import flash.net.*;
var url:String;
url=http://localhost:7001/billing/servlet/FileSvlt?operation=;;
url +=DOWNLOADfileId=2;
var urlRequest:URLRequest = new URLRequest(url);
sendToURL(urlRequest);
Tony D
--- In flexcoders@yahoogroups.com,
14 matches
Mail list logo