# Buttons not working as expected

**URL:** https://forum.kirupa.com/t/buttons-not-working-as-expected/326559
**Category:** flash
**Created:** [December 23, 2011, 5:27pm UTC](https://forum.kirupa.com/t/buttons-not-working-as-expected/326559 "2011-12-23T17:27:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![beagle](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@beagle](https://forum.kirupa.com/u/beagle)
#### Post date: [December 23, 2011, 5:27pm UTC](https://forum.kirupa.com/t/buttons-not-working-as-expected/326559/1 "2011-12-23T17:27:58Z")

</div>

Hi everyone!

I’ve followed [this tutorial](http://www.kirupa.com/developer/mx/photogallery.htm) and made a functional photo gallery.

Now, I want to add that photo gallery on my site. I’ve created a flash button and assigned it this action:

```auto
on (release) {
    _root.contents.loadMovie("Pictures.swf");
}

```

“contents” is the container movie clip, and “Pictures.swf” is photo gallery i’ve made. Now, when i click on button, Pictures.swf does load (arrows are being shown), but when i click on them, nothing happens.

Please help me to make my gallery functional 🙂
