# \[fmx\] how to create a download

**URL:** https://forum.kirupa.com/t/fmx-how-to-create-a-download/13259
**Category:** flash
**Created:** [February 10, 2003, 10:34pm UTC](https://forum.kirupa.com/t/fmx-how-to-create-a-download/13259 "2003-02-10T22:34:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ducki518](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@ducki518](https://forum.kirupa.com/u/ducki518)
#### Post date: [February 10, 2003, 10:34pm UTC](https://forum.kirupa.com/t/fmx-how-to-create-a-download/13259/1 "2003-02-10T22:34:54Z")

</div>

Does anyone know how to make it so that you can have a pdf download from a flash site???

(I have the pdf already created and I want it downloadable on a button mouse down)

Thanks!

Cassie  
[ducki518@aol.com](mailto:ducki518@aol.com)

---

<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: [February 10, 2003, 10:39pm UTC](https://forum.kirupa.com/t/fmx-how-to-create-a-download/13259/2 "2003-02-10T22:39:00Z")

</div>

zip it.

---

<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: [February 10, 2003, 10:39pm UTC](https://forum.kirupa.com/t/fmx-how-to-create-a-download/13259/3 "2003-02-10T22:39:14Z")

</div>

Howdy…

Use getURL() function to do that…  
But… before you do that, there is one thing you have to think… Many times when you click on the PDF file on the web, what happen??? Do you see the file downloading or do you see that PDF file inside of the web browser??? Usually they are two kinds of typical actions you AND your users can get… To make sure that you are forcing it to be downloaded, ZIP the PDF file first and then use

```auto
on (press)
{
   getURL("myPDFfile.ZIP");
}

```

to get that file downloaded when the button is pressed or any other occasions…

Good luck…

---

<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: [February 10, 2003, 11:00pm UTC](https://forum.kirupa.com/t/fmx-how-to-create-a-download/13259/4 "2003-02-10T23:00:32Z")

</div>

AND DON’T CROSSPOST! 😱

---

<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: [February 10, 2003, 11:10pm UTC](https://forum.kirupa.com/t/fmx-how-to-create-a-download/13259/5 "2003-02-10T23:10:24Z")

</div>

That too! 😱
