# Getting a file

**URL:** <https://forum.kirupa.com/t/getting-a-file/186138>\
**Category:** Uncategorized\
**Created:** [April 19, 2006, 9:46am UTC](https://forum.kirupa.com/t/getting-a-file/186138 "2006-04-19T09:46:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonybigude](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jonybigude](https://forum.kirupa.com/u/jonybigude)\
**Post date:** [April 19, 2006, 9:46am UTC](https://forum.kirupa.com/t/getting-a-file/186138/1 "2006-04-19T09:46:17Z")

</div>

Hi there!

Well, this time i’m posting a new thread, because i’m having some problems here with a button to download a file. The AS i use is:

```auto
 
on (release) {
 getURL("1pegada.zip", "_blank");
}

```

It should work isn’t it?.. but when i try it on the IE, i can’t download the fla, nothing hapends… is my AS wrong? Is there another AS code to get a file?.. What am i doing wrong? :h:

Thanks in advance…

---

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [April 19, 2006, 3:18pm UTC](https://forum.kirupa.com/t/getting-a-file/186138/2 "2006-04-19T15:18:21Z")

</div>

If you’re using flash 8, you can use the FileReference class versus getURL to download files - this also allows the user to select a location to download the file to on their computer. There is some sample code here:

[http://www.justinfront.net/Dnload/](http://www.justinfront.net/Dnload/)

---

<div class="post-metadata">

**Author:** ![this](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this/32/669_2.png) [@this](https://forum.kirupa.com/u/this)\
**Post date:** [April 19, 2006, 6:35pm UTC](https://forum.kirupa.com/t/getting-a-file/186138/3 "2006-04-19T18:35:15Z")

</div>

in clip:

```auto
on (release) {
 getURL("http://domain/1pegada.zip");
}

```

or in frame:

```auto
clip_instance.onRelease = function() {
 getURL("http://domain/1pegada.zip");
}

```

👁 HERE WORK FINE

---

<div class="post-metadata">

**Author:** ![jonybigude](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jonybigude](https://forum.kirupa.com/u/jonybigude)\
**Post date:** [April 19, 2006, 7:33pm UTC](https://forum.kirupa.com/t/getting-a-file/186138/4 "2006-04-19T19:33:34Z")

</div>

Well, seems that my issue is resolved… thanks! 🙂
