# How to load jpg by a button?

**URL:** https://forum.kirupa.com/t/how-to-load-jpg-by-a-button/215182
**Category:** Uncategorized
**Created:** [February 5, 2007, 7:39am UTC](https://forum.kirupa.com/t/how-to-load-jpg-by-a-button/215182 "2007-02-05T07:39:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![achwell](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@achwell](https://forum.kirupa.com/u/achwell)
#### Post date: [February 5, 2007, 7:39am UTC](https://forum.kirupa.com/t/how-to-load-jpg-by-a-button/215182/1 "2007-02-05T07:39:36Z")

</div>

hi.  
i have a button on the stage and wanted to load a picture by it.  
i want to know if this code is ok for that (in the case the pic’ file in on the same folder as the swf file)

on (release) {  
getURL(“001.jgp”);  
}

thanks a lot
