# Problem with button

**URL:** https://forum.kirupa.com/t/problem-with-button/77542
**Category:** Uncategorized
**Created:** [January 27, 2005, 11:27pm UTC](https://forum.kirupa.com/t/problem-with-button/77542 "2005-01-27T23:27:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![madkelt](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@madkelt](https://forum.kirupa.com/u/madkelt)
#### Post date: [January 27, 2005, 11:27pm UTC](https://forum.kirupa.com/t/problem-with-button/77542/1 "2005-01-27T23:27:09Z")

</div>

hello ladies and gentlemen))  
there is a problem with my button.  
here is my code:

```auto
 
stop();
_root.enter_btn.onRelease = function() {
 _root.up_mc.onEnterFrame = function() {
  _root.up_mc._alpha += 5;
  if (_root.up_mc._alpha>100) {
   _root.up_mc._alpha = null;
   delete _root.enter_btn.onRelease;
   delete _root.up_mc.onEnterFrame;
  }
 };
 _root.createEmptyMovieClip("login_cnt", 1);
 _root.login_cnt._x = 465;
 _root.login_cnt._y = 112;
 _root.login_cnt.attachMovie("loginForm", "loginForm_mc", 1);
};
_root.up_mc.onRelease = function() {
 _root.up_mc.onEnterFrame = function() {
  _root.up_mc._alpha -= 5;
  if (_root.up_mc._alpha<0) {
   delete _root.up_mc.onEnterFrame;
   delete _root.up_mc.onRelease;
  }
 };
 delete _root.enter_btn.onRelease;
 _root.login_cnt.removeMovieClip();
};

```

this code works only ONE time) the second time i’m pressing the button - no effect(  
please help! i’m stuck(
