Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-28-2002, 04:29 PM   #1
Registered User
Join Date: Aug 2001
Posts: 26
Default Download a file (PDF) from flash 5

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.


igorsden is offline   Reply With Quote
Old 01-28-2002, 04:42 PM   #2
(@_@) -("pretty lights")
Ricod's Avatar
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,982

Link ?
Ricod is offline   Reply With Quote
Old 01-30-2002, 10:04 PM   #3
Join Date: Jul 2001
Location: Virginia - USA
Posts: 26
Send a message via AIM to tstan
Default Download a file (PDF)

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:

no luck there either - any more ideas?
kind regards,
tstan is offline   Reply With Quote
Old 02-01-2002, 07:46 AM   #4
(@_@) -("pretty lights")
Ricod's Avatar
Join Date: Sep 2001
Location: the Netherlands
Posts: 3,982

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");
Link ?
Ricod is offline   Reply With Quote
Old 02-06-2002, 04:43 PM   #5
Zenzi Mala
sudarshan's Avatar
Join Date: Dec 2001
Location: Kathmandu (Nepal)
Posts: 22
Send a message via AIM to sudarshan Send a message via Yahoo to sudarshan
Default alternative

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.

sudarshan is offline   Reply With Quote
Old 12-07-2008, 03:28 AM   #6
Registered User
Join Date: Feb 2008
Location: Bydgoszcz
Posts: 7
Send a message via Skype™ to kasiaijuz

i want to user to download files when he hit on button

I was using:

on (release){

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
kasiaijuz is offline   Reply With Quote
Old 12-07-2008, 04:04 AM   #7
Super Moderator
CyanBlue's Avatar
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666

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

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calling a PDF file in Flash AudryLucy Projectors and CDs 20 12-30-2006 01:43 PM
Download problem caused by Flash file to large. Andy S ActionScript 2.0 2 05-07-2004 02: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 02:32 PM
saving flash 5 as flash 4 marinatowers ActionScript 1.0 (and below) 1 10-12-2001 04:45 PM
Flash Player 5 detect -- Code performance across minor release versions Jessica lucidiastudios ActionScript 1.0 (and below) 0 06-22-2001 08:46 PM

All times are GMT. The time now is 05:33 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.