| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Aug 2001
Posts: 26
|
morning everyone
does anyone know if its possible to download a file from flash? what I'd like to do is have a button in the flash movie that sends a pdf file to the user. the pdf file will be in the same directory as the flash movie. would it be easier just to send the user to a separate html page and have them download it from there? just wondering. thanks ig |
|
|
|
|
|
#2 |
|
(@_@) -("pretty lights")
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,988
|
getURL("file.pdf","_blank");
__________________
RicoD Link ? |
|
|
|
|
|
|
|
|
#3 |
|
member
|
Ricod and igorsden:
Hi there, I have been looking to do the same thing but I tried that code and it doesn't work. also tried: getURL("file:///filename.pdf"); no luck there either - any more ideas? kind regards, tstan |
|
|
|
|
|
#4 |
|
(@_@) -("pretty lights")
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,988
|
I guess it worked for igorsden ... requirements are that u use the actual filename in the getURL, and that its located in the same folder (else u have to include the path to the folder in the getURL) I'm not familiar with file:///filename.pdf
For instance, u have a pdf file named document.pdf, in the same folder as the swf, than the getURL is : getURL ("document.pdf"); If its in a subfolder named "pdfs", then the getURL would be : getURL ("pdfs\document.pdf");
__________________
RicoD Link ? |
|
|
|
|
|
#5 |
|
Zenzi Mala
|
if the link to the pdf file doesn't work you may try this method.
the alternate method: link the button (Flash) to an HTML file giving the link of the pdf file. You can try this method if it's not executing from Flash. all the best. Sud. |
|
|
|
|
|
#6 |
|
Registered User
|
i want to user to download files when he hit on button
I was using: on (release){ getURL("file_name.psd","_blank");} but I dont want to Fire fox nor Internet explorer to open the file I would like to see window where i have to choose localization where the file wil be downloaded |
|
|
|
|
|
#7 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 25,325
|
You will need to ZIP up the file to get away with it, or use a server side script to force the download... Otherwise, a web browser will automatically use the MIME type set for that file type...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calling a PDF file in Flash | AudryLucy | Projectors and CDs | 20 | 12-30-2006 02:43 PM |
| Download problem caused by Flash file to large. | Andy S | ActionScript 2.0 | 2 | 05-07-2004 03:22 PM |
| Help regarding Flash , PHP , MySQL but Flash as a Projector File and No Browser Needs | mahendrakalkura | Server-Side Scripting | 1 | 04-13-2002 03:32 PM |
| saving flash 5 as flash 4 | marinatowers | ActionScript 1.0 (and below) | 1 | 10-12-2001 05:45 PM |
| Flash Player 5 detect -- Code performance across minor release versions | Jessica lucidiastudios | ActionScript 1.0 (and below) | 0 | 06-22-2001 09:46 PM |