# Download button

**URL:** <https://forum.kirupa.com/t/download-button/3680>\
**Category:** flash\
**Created:** [November 1, 2001, 9:14pm UTC](https://forum.kirupa.com/t/download-button/3680 "2001-11-01T21:14:11Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [November 1, 2001, 9:14pm UTC](https://forum.kirupa.com/t/download-button/3680/1 "2001-11-01T21:14:11Z")

</div>

Puzzled…  
Having looked through the 1st twelve pages of this forum, I give up on this one:  
I can’t seem to remember how to get a Flash button to trigger the download of a zip file, my onRelease (getUrl myfile.zip) -in pseudo code- just opens a browser with [http://myfile.zip](http://myfile.zip) in the address, and a ‘file not found’ message… tired and gettin’ old…  
Any suggestions? Thanks

---

<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:** [November 2, 2001, 1:13am UTC](https://forum.kirupa.com/t/download-button/3680/2 "2001-11-02T01:13:47Z")

</div>

Well, what you said sounded correct, so I looked around in a few books that I have, and low-n-behold that is correct so I tried it out myself. I came out with the same problem; opened up a new page with file not found. I’ll keep looking and if you find out please post.

Good luck,  
Matt

---

<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:** [November 2, 2001, 6:26am UTC](https://forum.kirupa.com/t/download-button/3680/3 "2001-11-02T06:26:49Z")

</div>

Um… I can solve this in the morning. I know too that this causes some confusion, and I believe I fixed it by accident one day. If no one else has replied with the answer, I’ll do it when I get home from work.,

---

<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:** [November 2, 2001, 7:19am UTC](https://forum.kirupa.com/t/download-button/3680/4 "2001-11-02T07:19:35Z")

</div>

ahh!!! i know i had the exact same thing happen to me. well atleast one of us knows. we just gotta wait till he comes back from work eh

---

<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:** [November 2, 2001, 2:42pm UTC](https://forum.kirupa.com/t/download-button/3680/5 "2001-11-02T14:42:02Z")

</div>

sorry all, just found out!  
very simple, very stupid: when you test/ preview from within flash, it just doesn’t work!!  
test the generated swf by itself, ‘n’ everything is ok!  
is this SUPPOSED to work when testing, i ask you guys from Macromedia???  
next time we’ll know 😉

---

<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:** [November 2, 2001, 3:17pm UTC](https://forum.kirupa.com/t/download-button/3680/6 "2001-11-02T15:17:01Z")

</div>

Yes… or save it to a file first. Addressing in flash, when testing the movie, is done from a default temp directory, IF you haven’t saved it somewhere first. That’s why it seems fluky… like it happens sometimes and not other times. The fla, must be saved to the same place as the zip for it to work on your harddrive

Good thing to keep in mind. I was just sitting here scratching my head saying… ‘hmm it works just fine for me’. Forgot that little tidbit.

---

<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:** [November 2, 2001, 4:53pm UTC](https://forum.kirupa.com/t/download-button/3680/7 "2001-11-02T16:53:51Z")

</div>

oh yeah. that buggs me sometimes.
