# Use of Button to call local file

**URL:** <https://forum.kirupa.com/t/use-of-button-to-call-local-file/118212>\
**Category:** Uncategorized\
**Created:** [August 3, 2004, 5:34pm UTC](https://forum.kirupa.com/t/use-of-button-to-call-local-file/118212 "2004-08-03T17:34:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sckneu](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@sckneu](https://forum.kirupa.com/u/sckneu)\
**Post date:** [August 3, 2004, 5:34pm UTC](https://forum.kirupa.com/t/use-of-button-to-call-local-file/118212/1 "2004-08-03T17:34:46Z")

</div>

[size=2]Hello all,

I am relativity new to flash and I am trying to distribute a CD with a sales demo on it. I have an icon that I want to use to call a file (a PDF) that will be included on the CD, rather than going on the internet. Also, I want it to open in a new window.  
I haven’t had much luck attaching an action to the button:

on (release) {  
getURL ("…[/size][[size=2][color=#0000ff]\password\_reset.pdf[/color][/size]](file://password\_reset.pdf/)[size=2]", “\_blank”);[/size]  
[size=2]}  
Should I be using the getURL function to call the PDF? If so, what should be the prefix to tell the browser not to go to the internet, but the root directory?

Thanks in advance!

SCKNEU

[/size]

---

<div class="post-metadata">

**Author:** ![yurumi](https://avatars.discourse-cdn.com/v4/letter/y/838e76/32.png) [@yurumi](https://forum.kirupa.com/u/yurumi)\
**Post date:** [August 21, 2004, 9:51pm UTC](https://forum.kirupa.com/t/use-of-button-to-call-local-file/118212/2 "2004-08-21T21:51:20Z")

</div>

[size=2]well, that should work, are you sure that you wrote the correct path?if you used [http://www…that](http://www...that) could be an answer.[/size]  
[size=2][/size]  
[size=2]  
[/size]
