# How to make a download button?

**URL:** <https://forum.kirupa.com/t/how-to-make-a-download-button/175609>\
**Category:** Uncategorized\
**Created:** [January 16, 2006, 11:41am UTC](https://forum.kirupa.com/t/how-to-make-a-download-button/175609 "2006-01-16T11:41:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Puska](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@Puska](https://forum.kirupa.com/u/Puska)\
**Post date:** [January 16, 2006, 11:41am UTC](https://forum.kirupa.com/t/how-to-make-a-download-button/175609/1 "2006-01-16T11:41:29Z")

</div>

Hi

I have a pdf-file. I need to make a button that starts to download the pdf.  
At the moment my button code is this:

```auto

on(release)
{
getURL("/matskut/testi.pdf", "_blank");
}

```

So the pdf is on subfolder matskut and name of the pdf is testi.pdf

I get no error messages, but it won’t open/download the pdf.  
I am running swf-file from my hard disc, could this be the problem?  
or is my code bad?

thanks
