# Flash Running on a CD

**URL:** <https://forum.kirupa.com/t/flash-running-on-a-cd/113209>\
**Category:** Uncategorized\
**Created:** [June 15, 2004, 10:19pm UTC](https://forum.kirupa.com/t/flash-running-on-a-cd/113209 "2004-06-15T22:19:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![madjack](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/madjack/32/585_2.png) [@madjack](https://forum.kirupa.com/u/madjack)\
**Post date:** [June 15, 2004, 10:19pm UTC](https://forum.kirupa.com/t/flash-running-on-a-cd/113209/1 "2004-06-15T22:19:01Z")

</div>

I was wondering if anyone can help me figure out what the getURL should look like if I wanted to launch and html page from the CD on which my Flash is running. Basically I am trying to launch all the hyperlinks locally on the CD Rom without knowing the drive letter. 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:** [June 15, 2004, 10:20pm UTC](https://forum.kirupa.com/t/flash-running-on-a-cd/113209/2 "2004-06-15T22:20:39Z")

</div>

you can’t know the drive letter on each person’s computer…

if you want to open files from the CD, just use relative addressing, just as you would on the web.

---

<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:** [June 15, 2004, 10:25pm UTC](https://forum.kirupa.com/t/flash-running-on-a-cd/113209/3 "2004-06-15T22:25:50Z")

</div>

relative links aren’t working… The broswer just sits there and doesn’t even give a file not found… Example:

```
  getURL("file://c:/exhibit/web/ccc/11th.html", "_blank");

```

works fine but  
getURL(“file:///exhibit/web/ccc/11th.html”, “\_blank”);  
or getURL(“file://exhibit/web/ccc/11th.html”, “\_blank”);  
doesn’t depending where I put the swf file.

neither does getURL(“exhibit/web/ccc/11th.html”, “\_blank”);

---

<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:** [June 16, 2004, 12:07am UTC](https://forum.kirupa.com/t/flash-running-on-a-cd/113209/4 "2004-06-16T00:07:51Z")

</div>

bump… i’m going nuts here… :hair:

---

<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:** [June 16, 2004, 12:12am UTC](https://forum.kirupa.com/t/flash-running-on-a-cd/113209/5 "2004-06-16T00:12:35Z")

</div>

addressing the C:/ drive is absolute.

addressing it as /myFile.html is relative.

If the path is correct, then it will work.

You can’t point the getURL to a file on the end user’s computer. Of course, since you don’t know for a fact that they have that file…

so you have to use relative addressing. I’m sure the path is incorrect, especially since it works with an absolute path.

---

<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:** [June 16, 2004, 1:18am UTC](https://forum.kirupa.com/t/flash-running-on-a-cd/113209/6 "2004-06-16T01:18:20Z")

</div>

> [@reverendflash](#):
>
> addressing the C:/ drive is absolute.
> 
> addressing it as /myFile.html is relative.
> 
> If the path is correct, then it will work.
> 
> You can’t point the getURL to a file on the end user’s computer. Of course, since you don’t know for a fact that they have that file…
> 
> so you have to use relative addressing. I’m sure the path is incorrect, especially since it works with an absolute path.

Thanks for trying Rev but I still can’t beat it. I understand relative and absolute calls I guess my last post was a little unclear. I guess mainly I am wondering if I need to use something besides getUrl since no matter what I try the link won’t work. I ran test with the projector and a single test.html in the same directory and unless I called the absolute with c:\ it wouldn’t work. I know this is something small I think I have been staring at it too long.

---

<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:** [June 16, 2004, 1:25am UTC](https://forum.kirupa.com/t/flash-running-on-a-cd/113209/7 "2004-06-16T01:25:32Z")

</div>

nope, getURL is it…

You cannot call anything from C:/, since it is on the end-user’s hard drive, and you don’t know what that contains…

Once more, you can not call anything other than what is on the CD that you are producing, since you can’t guarantee that every end user will have a certain file…

---

<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:** [June 16, 2004, 12:06pm UTC](https://forum.kirupa.com/t/flash-running-on-a-cd/113209/8 "2004-06-16T12:06:33Z")

</div>

can you post an example of where your are storing the html files, just post the structure of you cd and we can help you figure this out its just a targetting problem your most surely using the wrong path like our dear Rev says, and also post the code that you are using to open the html files that way we can see if its your coding thats wrong or if its a targetting problem.
