# Opening local files via a .swf

**URL:** <https://forum.kirupa.com/t/opening-local-files-via-a-swf/209836>\
**Category:** flash\
**Created:** [December 12, 2006, 7:26pm UTC](https://forum.kirupa.com/t/opening-local-files-via-a-swf/209836 "2006-12-12T19:26:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimp](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jimp/32/1747_2.png) [@Jimp](https://forum.kirupa.com/u/Jimp)\
**Post date:** [December 12, 2006, 7:26pm UTC](https://forum.kirupa.com/t/opening-local-files-via-a-swf/209836/1 "2006-12-12T19:26:29Z")

</div>

Ok i have a slight problem with opening local files.

I want it so when you click a button, it opens a file in a different folder to the on ethe .swf with the button is in. For example, when the “load page” button is clicked, i want the file at “/flash/vomitgame/index.html” to load. currently i am using this attached to a button instance, but it isnt working:

on (release) {getURL("/flash/vomitgame/index.html","\_blank ");

}

Also, i want another button to do the same thing, but open a .jpg. Would I use the same code?

This is going to be put on a disc, with the “portfolio.swf” being the main file, and other files from differernt folders either opened or loaded into portfolio.swf.

Can anyone help?
