# URLRequest for external jpegs

**URL:** <https://forum.kirupa.com/t/urlrequest-for-external-jpegs/321393>\
**Category:** flash\
**Created:** [April 19, 2011, 2:57am UTC](https://forum.kirupa.com/t/urlrequest-for-external-jpegs/321393 "2011-04-19T02:57:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![doobiedubois](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@doobiedubois](https://forum.kirupa.com/u/doobiedubois)\
**Post date:** [April 19, 2011, 2:57am UTC](https://forum.kirupa.com/t/urlrequest-for-external-jpegs/321393/1 "2011-04-19T02:57:40Z")

</div>

Hello…

This should be simple but it has had me stuck for a while.

I’m trying to click a button or thumbnail to open a jpeg. The jpgs are external and bigger than the stage dimensions.  
When previewing the swf, it works just fine. The jpegs open in Preview. But… when the swf is embed in the html file, the jpeg can’t be located. Is there an issue with the my code or is something. Here is some sample code:

```auto
zagat_btn.addEventListener(MouseEvent.CLICK, zagatThumbFunction);

function zagatThumbFunction(e:MouseEvent){
	navigateToURL(new URLRequest("zagat.jpg"));
}

```
