# Open html file

**URL:** <https://forum.kirupa.com/t/open-html-file/17567>\
**Category:** Uncategorized\
**Created:** [April 7, 2003, 3:07am UTC](https://forum.kirupa.com/t/open-html-file/17567 "2003-04-07T03:07:55Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![maggots213](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@maggots213](https://forum.kirupa.com/u/maggots213)\
**Post date:** [April 7, 2003, 3:07am UTC](https://forum.kirupa.com/t/open-html-file/17567/1 "2003-04-07T03:07:55Z")

</div>

how do i open up a html file that is stored on my harddrive? i am using the on release commans. ok , the thing is theres a button, when the user clicks on this button it will open up a html file via a new window. please help me… should i use the geturl command?

malcolm

---

<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:** [April 7, 2003, 4:49am UTC](https://forum.kirupa.com/t/open-html-file/17567/2 "2003-04-07T04:49:28Z")

</div>

[AS]on (release) {  
getURL(“c: emp emp.htm”, “\_blank”)  
}[/AS]

put some code like that on your button with the right path to your document.

---

<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:** [April 7, 2003, 6:23am UTC](https://forum.kirupa.com/t/open-html-file/17567/3 "2003-04-07T06:23:32Z")

</div>

actually this is meant to be a CD-Rom thing so i cant use the C:\ i tried using this sentence getURL("…/temp/temp.htm") but its doesnt work on the cd  
please help… anyone ??

---

<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:** [April 7, 2003, 6:38am UTC](https://forum.kirupa.com/t/open-html-file/17567/4 "2003-04-07T06:38:07Z")

</div>

use a relative path… :q:

---

<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:** [April 7, 2003, 6:54am UTC](https://forum.kirupa.com/t/open-html-file/17567/5 "2003-04-07T06:54:14Z")

</div>

im sorry, how do you mean by relative path, can you give me an example… thanks a lot i really appreciate it

---

<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:** [April 7, 2003, 6:58am UTC](https://forum.kirupa.com/t/open-html-file/17567/6 "2003-04-07T06:58:53Z")

</div>

if a file called ‘myFile.html’ is in the same folder as the swf, you can use

```auto
getURL("myFile.html", "_blank")

```

instead of going like

```auto
getURL("d:/myFile.html", "_blank")//or whatever its address would be

```

🙂

---

<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:** [April 7, 2003, 7:17am UTC](https://forum.kirupa.com/t/open-html-file/17567/7 "2003-04-07T07:17:00Z")

</div>

sorry, but what if its not gonna be in the same folder?cos theres gonna be link to many htmls in different folders

---

<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:** [April 7, 2003, 7:27am UTC](https://forum.kirupa.com/t/open-html-file/17567/8 "2003-04-07T07:27:22Z")

</div>

then you can say getURL(“folder1/folder2/myFile.html”, “\_blank”), provided that ‘folder1’ and your swf file are in the same folder 🙂

---

<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:** [April 7, 2003, 8:15am UTC](https://forum.kirupa.com/t/open-html-file/17567/9 "2003-04-07T08:15:47Z")

</div>

can it be another folder? its very confusing

---

<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:** [April 7, 2003, 8:27am UTC](https://forum.kirupa.com/t/open-html-file/17567/10 "2003-04-07T08:27:47Z")

</div>

i believe that this might work…  
[AS]on (release) {  
getURL(".html/myfile.html", “\_blank”)  
}  
[/AS]  
^where html is a folder and myfile.html is the webpage  
in html, I THINK, on dot is relative and two dots is absolute, so try that, if no one else answered ur question

---

<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:** [April 7, 2003, 8:30am UTC](https://forum.kirupa.com/t/open-html-file/17567/11 "2003-04-07T08:30:11Z")

</div>

i will try that thanks a 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:** [April 7, 2003, 8:37am UTC](https://forum.kirupa.com/t/open-html-file/17567/12 "2003-04-07T08:37:58Z")

</div>

holy \*\*\*\* ! it works !!! thanks aot man, i have been trying with 2 dots, didnt even know u can do it with one dots also thanks man !!!

---

<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:** [April 7, 2003, 11:18am UTC](https://forum.kirupa.com/t/open-html-file/17567/13 "2003-04-07T11:18:34Z")

</div>

hmm, 2 dots and 1 are different things man, see my other post if you didnt catch it

glad it worked  
hawk
