# Simple Action Question

**URL:** <https://forum.kirupa.com/t/simple-action-question/15420>\
**Category:** flash\
**Created:** [March 14, 2003, 12:30am UTC](https://forum.kirupa.com/t/simple-action-question/15420 "2003-03-14T00:30:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Palaecro](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@Palaecro](https://forum.kirupa.com/u/Palaecro)\
**Post date:** [March 14, 2003, 12:30am UTC](https://forum.kirupa.com/t/simple-action-question/15420/1 "2003-03-14T00:30:11Z")

</div>

Hi, I’m designing a flash SWF that will have buttons in it that activate certain files such as, jpg’s, websites in HTML, other SWF’s. It is a digital portfolio. I was just wondering what action do I give a button if say the file extension name is JPG1.  
From what I know right now I would put Goto “JPG1”. But somehow it seems very wrong.

As well unless it does it automatically I would like all these files to open up in a new window, when I say this I mean other SWF’s that are opened from within the main SWF.

---

<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:** [March 14, 2003, 12:33am UTC](https://forum.kirupa.com/t/simple-action-question/15420/2 "2003-03-14T00:33:25Z")

</div>

use getURL()

on the button put:

```auto

on(press){
    getURL("thePathToTheImage.jpg", "_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:** [March 14, 2003, 4:39am UTC](https://forum.kirupa.com/t/simple-action-question/15420/3 "2003-03-14T04:39:42Z")

</div>

Thanks for the reply, but I can’t get it to work. The file is currently on my desktop in a folder called Portfolio\_Work. The File that the button is trying to access is called S2P2.swf. This is what I wrote in the Actions for the button

on(press){  
getURL(“Portfolio\_Work/S2P2.swf”, “\_blank”);  
}

If anyone can tell me what Im doing wrong it would be greatly appreciated.
