# Downloading from flash?

**URL:** <https://forum.kirupa.com/t/downloading-from-flash/60619>\
**Category:** Uncategorized\
**Created:** [August 11, 2004, 4:06am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619 "2004-08-11T04:06:52Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![sqladmin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sqladmin/32/125_2.png) [@sqladmin](https://forum.kirupa.com/u/sqladmin)\
**Post date:** [August 11, 2004, 4:06am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/1 "2004-08-11T04:06:52Z")

</div>

i’m trying to add a .doc or .zip to my flash movie, so that when users want to download some thing they like they can just click on a download link, and then the downloading will begin.

the problem is that i’m not quite sure how to do it. just wondering if any one could maybe explain to me alittle about that process.

thanks in advance.

---

<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 11, 2004, 4:09am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/2 "2004-08-11T04:09:30Z")

</div>

Call in something like JavaScript to do it for you.

---

<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 11, 2004, 4:11am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/3 "2004-08-11T04:11:47Z")

</div>

well now i know where to begin.

thanks for the reply krilnon.

by the way… what is the significance of the name? just wondering.

---

<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 11, 2004, 4:12am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/4 "2004-08-11T04:12:36Z")

</div>

just link to the file? you can also force headers in php to download the file if the problem is that it’ll show up inside the browser

---

<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 11, 2004, 4:15am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/5 "2004-08-11T04:15:38Z")

</div>

thanks again for the help man.

- sqladmin

---

<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 11, 2004, 4:26am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/6 "2004-08-11T04:26:47Z")

</div>

> [@sqladmin](#):
>
> well now i know where to begin.
> 
> thanks for the reply krilnon.
> 
> by the way… what is the significance of the name? just wondering.

It has no meaning.

---

<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, 2004, 9:29am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/7 "2004-08-13T09:29:51Z")

</div>

hello  
i am buliding my flash on a cd rom, not website. i want to add a link to my .doc files. i managed to do that but then i played my cd on other computers, it cant find the file. even though i add the file inside the folder in the cd rom. how do i made the link to be relative (independant) in flash?

is it getURL("./flash/word.doc")?

thanks million

---

<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, 2004, 10:04am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/8 "2004-08-13T10:04:50Z")

</div>

If you are building your flash onto a CD-Rom, it might be worth looking at creating an .exe from the Flash. Use a tool such as Flash Studio Pro - at [http://www.multidmedia.com/](http://www.multidmedia.com/) or SWFKit at [http://www.swfkit.com/](http://www.swfkit.com/)

These tools allow you to add buttons to browse and access local files - exactly as you need to do. This can be done from Flash, but is much more complicated and would involve the use of additional server technology.

The above tools allow you to do what you want with just a couple of lines of code.

---

<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 14, 2004, 8:23am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/9 "2004-08-14T08:23:54Z")

</div>

thanks andyfield for the info, but i cant buy the program, do u have any idea to do it through flash and not through the software  
thanks

> [@AndyField](#):
>
> If you are building your flash onto a CD-Rom, it might be worth looking at creating an .exe from the Flash. Use a tool such as Flash Studio Pro - at [http://www.multidmedia.com/ or SWFKit at [url=“http://www.swfkit.com/”]http://www.swfkit.com/](http://www.multidmedia.com/)
> 
> These tools allow you to add buttons to browse and access local files - exactly as you need to do. This can be done from Flash, but is much more complicated and would involve the use of additional server technology.
> 
> The above tools allow you to do what you want with just a couple of lines of code.

---

<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 14, 2004, 8:25am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/10 "2004-08-14T08:25:21Z")

</div>

i tried the trial version but it has the trial pop up screen which i tried to get rid of but not successful.

> [@terrible@flash](#):
>
> thanks andyfield for the info, but i cant buy the program, do u have any idea to do it through flash and not through the software  
> 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:** [August 14, 2004, 9:44am UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/11 "2004-08-14T09:44:56Z")

</div>

OK - just try linking to the documents directly. For example, if the doc is in the same folder as your flash file, use a link such as:

on(Release)  
{getURL(“documentname.doc”)}

That would work. As a solution for your specific problem, could you look at changing the location of the documents you need to load - put them in a sub directory so it is easier to link to them?

---

<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 14, 2004, 8:06pm UTC](https://forum.kirupa.com/t/downloading-from-flash/60619/12 "2004-08-14T20:06:51Z")

</div>

Flash can export .exe files by itself (under “publish options”, called “windows projector”), and a lot of customization of the resulting file can be done manually (with ResourceHacker), though you can’t do as much as when using a 3rd party tool, mostly just things like the right-click menu and the icon for the file.
