# getURL for d/l a pdf?

**URL:** <https://forum.kirupa.com/t/geturl-for-d-l-a-pdf/4581>\
**Category:** flash\
**Created:** [August 13, 2002, 6:35pm UTC](https://forum.kirupa.com/t/geturl-for-d-l-a-pdf/4581 "2002-08-13T18:35:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qwerty99](https://avatars.discourse-cdn.com/v4/letter/q/f08c70/32.png) [@qwerty99](https://forum.kirupa.com/u/qwerty99)\
**Post date:** [August 13, 2002, 6:35pm UTC](https://forum.kirupa.com/t/geturl-for-d-l-a-pdf/4581/1 "2002-08-13T18:35:05Z")

</div>

how do i us getURL() to have a button d/l a pdf?

on (release){  
getURL("…/pdf/test/test.pdf")  
}

aint workin…  
also doesnt like the relative path …/ do  
i need to [] 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:** [August 13, 2002, 8:33pm UTC](https://forum.kirupa.com/t/geturl-for-d-l-a-pdf/4581/2 "2002-08-13T20:33:03Z")

</div>

Hey qwerty99,  
Simply use the getURL statement as shown, but try including the full path to the PDF file. When the user clicks the link, the PDF file will open if the user has Adobe Acrobat Reader or will provide a download link if the user does not have the PDF reader.

Cheers!  
Kirupa :asian:

---

<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:** [August 15, 2002, 2:20pm UTC](https://forum.kirupa.com/t/geturl-for-d-l-a-pdf/4581/3 "2002-08-15T14:20:42Z")

</div>

yes… but it still isnt working.

will a relative path (or one with …/) never work?

also, i always want it to download… will i have to pack it  
to make it download (.zip, .sit, etc.?)

has anybody gotten this to work?
