# Can't get button to work. What's wrong?

**URL:** <https://forum.kirupa.com/t/cant-get-button-to-work-whats-wrong/325042>\
**Category:** flash\
**Created:** [September 22, 2011, 8:35pm UTC](https://forum.kirupa.com/t/cant-get-button-to-work-whats-wrong/325042 "2011-09-22T20:35:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLKelsey](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@BLKelsey](https://forum.kirupa.com/u/BLKelsey)\
**Post date:** [September 22, 2011, 8:35pm UTC](https://forum.kirupa.com/t/cant-get-button-to-work-whats-wrong/325042/1 "2011-09-22T20:35:18Z")

</div>

I am loading 4 external SWF’s inside a Master Movie file. I’ve got 3 of the 4 working. The last one is giving be fits and I can’t see the problem. I am housing the external SWF’s inside a manually created container (AS2). This last button is being a rebel and it’s driving me nuts.

I’ve checked and double-checked to ensure the instance name matches the button name in the code…as well as the name of the external swf. It’s all correct, to me. The swf is in the same folder as the fla, by the way.

Sure could use some fresh eyes that might be able to figure what’s going on.

**Button instance name:** dynambtn  
**Name of swf** : dynam.swf

```auto

stop ();

jukebtn.onPress = function ()
{
    _root.createEmptyMovieClip ("container",1);
    loadMovie ("jukebox.swf", "container");
    container._xscale = 80;
    container._yscale = 73;
    container._x = 362;
    container._y = 152;
};

sshowbtn.onPress = function ()
{
    _root.createEmptyMovieClip ("container",1);
    loadMovie ("sshow.swf", "container");
    container._xscale = 66.5;
    container._yscale = 65;
    container._x = 359 ;
    container._y = 155;
};

gamebtn.onPress = function ()
{
    _root.createEmptyMovieClip ("container",1);
    loadMovie ("drag_drop.swf", "container");
    container._xscale = 56;
    container._yscale = 58;
    container._x = 400;
    container._y = 163;
};

dynambtn.onPress = function () //problem button
{
    _root.createEmptyMovieClip ("container",1);
    loadMovie ("dynam.swf", "container");
    container._xscale = 50;
    container._yscale = 50;
    container._x = 350;
    container._y = 130;
};

```
