# Please help! Need to link to jpegs!

**URL:** <https://forum.kirupa.com/t/please-help-need-to-link-to-jpegs/19078>\
**Category:** Uncategorized\
**Created:** [April 24, 2003, 2:53am UTC](https://forum.kirupa.com/t/please-help-need-to-link-to-jpegs/19078 "2003-04-24T02:53:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exedus](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@Exedus](https://forum.kirupa.com/u/Exedus)\
**Post date:** [April 24, 2003, 2:53am UTC](https://forum.kirupa.com/t/please-help-need-to-link-to-jpegs/19078/1 "2003-04-24T02:53:40Z")

</div>

Hey all! I’m putting together a page for a mock site promoting a fake movie. In the promo page I have desktops and posters for people to view. I have all the buttons made for the different sizes of desktops, like 800x600.

How do I create a link to the jpegs in AS in the buttons so that the jpeg will open in it’s own window?

---

<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 24, 2003, 3:14am UTC](https://forum.kirupa.com/t/please-help-need-to-link-to-jpegs/19078/2 "2003-04-24T03:14:44Z")

</div>

Apply this script to your button:[AS]on (release) {  
getURL(“[http://www.yoursite.com/yourimage.jpg](http://www.yoursite.com/yourimage.jpg)”, “\_blank”);  
}  
[/AS]

Just fill in the URL of your jpg image.

---

<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 24, 2003, 3:21am UTC](https://forum.kirupa.com/t/please-help-need-to-link-to-jpegs/19078/3 "2003-04-24T03:21:18Z")

</div>

no that wont work. The site and the jpeg aren’t online yet. the jpeg is in a folder on my desktop, as is the fla.

It’s not going to be online. It’s just a prototype  
Please help.

---

<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 24, 2003, 3:34am UTC](https://forum.kirupa.com/t/please-help-need-to-link-to-jpegs/19078/4 "2003-04-24T03:34:29Z")

</div>

And…?

The only difference if the file is on a server or on your computer is the path. If the file is in the same directory as the .swf, just use the filename in the URL area, if it is in a folder use folder/filename, etc, etc.
