# How do I create a Download link?

**URL:** https://forum.kirupa.com/t/how-do-i-create-a-download-link/65251
**Category:** flash
**Created:** [September 24, 2004, 11:20am UTC](https://forum.kirupa.com/t/how-do-i-create-a-download-link/65251 "2004-09-24T11:20:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![purpleStu](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@purpleStu](https://forum.kirupa.com/u/purpleStu)
#### Post date: [September 24, 2004, 11:20am UTC](https://forum.kirupa.com/t/how-do-i-create-a-download-link/65251/1 "2004-09-24T11:20:41Z")

</div>

I have created a very simple Flash site that requires a link to a pdf file for download to the end user’s computer. Now, this is quite possibly a really stupid question but, I need to know.

Do I need to do anything in particular to achieve this such as placement in a specific ftp folder or will I require a small snippet of either ActionScript with php, if so, how do I do that, or do I simply add a getURL() and leave the rest to luck?

Sorry if this sounds really dumb but the only stuff on ftp I can find refers to uploading.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 24, 2004, 11:51am UTC](https://forum.kirupa.com/t/how-do-i-create-a-download-link/65251/2 "2004-09-24T11:51:40Z")

</div>

Simply use getURL (); to accomplish this. If the end user machine doesn’t have a pdf reader he/she will be prompted to download the file. Otherwise the file will be loaded to a browser+acrobat window.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 24, 2004, 12:15pm UTC](https://forum.kirupa.com/t/how-do-i-create-a-download-link/65251/3 "2004-09-24T12:15:33Z")

</div>

> [@abhilashkk](#):
>
> Simply use getURL (); to accomplish this. If the end user machine doesn’t have a pdf reader he/she will be prompted to download the file. Otherwise the file will be loaded to a browser+acrobat window.

Fab, done it, thanks. :p:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 1, 2004, 3:52pm UTC](https://forum.kirupa.com/t/how-do-i-create-a-download-link/65251/4 "2004-10-01T15:52:05Z")

</div>

> [@abhilashkk](#):
>
> Simply use getURL (); to accomplish this. If the end user machine doesn’t have a pdf reader he/she will be prompted to download the file. Otherwise the file will be loaded to a browser+acrobat window.

I have a similar problem:  
I am trying to create a download link that overrides the browser’s settings to open an MP3 file (so that my page’s visitor can save a copy of the file, instead of just opening it in a player that may or may not let them save a copy). Essentially, I want my Flash link to have the same affect as selecting “save link as…” in a normal html-based page.

Any advice on how to do this?

Thanks a lot,  
Dan
