# Load button

**URL:** https://forum.kirupa.com/t/load-button/10381
**Category:** flash
**Created:** [December 30, 2002, 9:51pm UTC](https://forum.kirupa.com/t/load-button/10381 "2002-12-30T21:51:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LATO](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@LATO](https://forum.kirupa.com/u/LATO)
#### Post date: [December 30, 2002, 9:51pm UTC](https://forum.kirupa.com/t/load-button/10381/1 "2002-12-30T21:51:56Z")

</div>

How can load a picture in my swf-file but I need it as a button to go to another frame. Is this possible?

---

<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: [December 30, 2002, 9:54pm UTC](https://forum.kirupa.com/t/load-button/10381/2 "2002-12-30T21:54:31Z")

</div>

i think one way of doing this is having an empty movieclip in the ‘up’ frame of the button as a container, and then loading the image into it with loadMovie(). Then have a gotoAndPlay() action on the button itself

cheers  
:A+: ![](http://www.flashdevils.com/~ahmed/hmed.gif)

---

<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: [December 30, 2002, 11:42pm UTC](https://forum.kirupa.com/t/load-button/10381/3 "2002-12-30T23:42:00Z")

</div>

once the image is loaded, you can assign it a onRelease action

---

<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: [December 31, 2002, 3:31pm UTC](https://forum.kirupa.com/t/load-button/10381/4 "2002-12-31T15:31:42Z")

</div>

A little more detail on what ahmed and senocular are talking about.

First, follow [this](http://www.kirupa.com/developer/mx/loading.asp) tutorial, and it will tell you how to load movies/images from a remote location.

Place the empty movieclip that you are creating inside the ‘up’ frame of the button that you want people to click on. Then just go into the actions panel, and insert a “goToAndPlay()” or “goToAndStop()” action on the button. In Flash MX, it will automatically add the onRelease functions and crap, so you don’t really have to worry about that.

🙂
