# Buttons stopped working after click

**URL:** <https://forum.kirupa.com/t/buttons-stopped-working-after-click/181313>\
**Category:** flash\
**Created:** [March 8, 2006, 8:16am UTC](https://forum.kirupa.com/t/buttons-stopped-working-after-click/181313 "2006-03-08T08:16:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![roy1](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@roy1](https://forum.kirupa.com/u/roy1)\
**Post date:** [March 8, 2006, 8:16am UTC](https://forum.kirupa.com/t/buttons-stopped-working-after-click/181313/1 "2006-03-08T08:16:43Z")

</div>

I am having some problems with my buttons, after i clicked them they seem to stop working.

Ive put my version online [http://www.roysterken.nl/test\_online.swf](http://www.roysterken.nl/test_online.swf)

I have this code in root :

```auto

stop();

// GEBOUW 2
this.gebouw2_mc.gebouw2_btn.onRollOver = function() {
    _root.gebouw2_mc.gotoAndPlay(2);
    _root.x +=2;
    _root.gebouw2_mc.swapDepths(_root.x);
    trace("rollover");
};

this.gebouw2_mc.gebouw2_btn.onRollOut = function() {
    _root.gebouw2_mc.gotoAndPlay(1);
    trace("rollout");
};

this.gebouw2_mc.gebouw2_btn.onRelease = function() {
    _root.gebouw2_mc.gotoAndPlay(7);
    _root.x +=2;
    _root.gebouw2_mc.swapDepths(_root.x);
    trace("release");
};

// GEBOUW 3
this.gebouw3_mc.gebouw3_btn.onRollOver = function() {
    _root.gebouw3_mc.gotoAndPlay(2);
    _root.x +=2;
    _root.gebouw3_mc.swapDepths(_root.x);
    trace("rollover");
};

this.gebouw3_mc.gebouw3_btn.onRollOut = function() {
    _root.gebouw3_mc.gotoAndPlay(1);
    trace("rollout");
};

this.gebouw3_mc.gebouw3_btn.onRelease = function() {
    _root.gebouw3_mc.gotoAndPlay(7);
    _root.x +=2;
    _root.gebouw3_mc.swapDepths(_root.x);
    trace("release");
};

```

And this is the code for the “X” button in the tooltip:

```auto

this.tooltip_close.onRelease = function(){ 
    trace("close");
    this._parent._parent.gotoAndPlay(1);
};

```

When i trace “this.\_parent.\_parent” it gives me \_level0.gebouw3\_mc.

While “\_root” gives me \_level0 same for “this.\_parent.\_parent.\_parent”. But its not working like i want it to, see it here:  
[http://www.roysterken.nl/test\_online\_root.swf](http://www.roysterken.nl/test_online_root.swf)

What am i doing wrong? ive been working on this for the last past days now and i still dont get it ☹

Thanks in advance for your help!
