# How do I link an external file?

**URL:** <https://forum.kirupa.com/t/how-do-i-link-an-external-file/20628>\
**Category:** Uncategorized\
**Created:** [May 11, 2003, 8:55am UTC](https://forum.kirupa.com/t/how-do-i-link-an-external-file/20628 "2003-05-11T08:55:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tlatoani](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@Tlatoani](https://forum.kirupa.com/u/Tlatoani)\
**Post date:** [May 11, 2003, 8:55am UTC](https://forum.kirupa.com/t/how-do-i-link-an-external-file/20628/1 "2003-05-11T08:55:51Z")

</div>

Hi there!!!

I’m kind of beginer in Flash MX, and I’m trying to know how to link an external html file to a button in a flash file.

This html file is not on the web, is in my hard disk, so I’d really like to know what script can I use to call, load, open or what ever this kind of file from a button in a flash file.

Let me thank those of you who can help me…

---

<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:** [May 11, 2003, 9:03am UTC](https://forum.kirupa.com/t/how-do-i-link-an-external-file/20628/2 "2003-05-11T09:03:28Z")

</div>

welcome to the forums. First, open up the actions panel ( do window\>actions if it’s not there). Then put this code in:  
[AS]on (release){  
//replace “somerandomfile.htm” with the file you want to load in  
//with an HTML relative path.  
//the second option specifies where you want the page loaded  
//\_self means the current page, \_blank means a new page.  
getURL(“somerandomfile.htm”,\_self)  
}[/AS]
