# Changing alpha and stopping

**URL:** <https://forum.kirupa.com/t/changing-alpha-and-stopping/162849>\
**Category:** Uncategorized\
**Created:** [September 16, 2005, 8:23pm UTC](https://forum.kirupa.com/t/changing-alpha-and-stopping/162849 "2005-09-16T20:23:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coop](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@coop](https://forum.kirupa.com/u/coop)\
**Post date:** [September 16, 2005, 8:23pm UTC](https://forum.kirupa.com/t/changing-alpha-and-stopping/162849/1 "2005-09-16T20:23:47Z")

</div>

Hi all

I’m looking for a simple way increase the alpha of an object, but then stop it before it gets to 100  
I was thinking somehting like

```auto
two_mc._alpha = 0;
one_btn.onRelease = function() {
     _root.onEnterFrame = function() {
          two_mc._alpha += 10;
          if (this._alpha == 50) {
               this._alpha = 50;
               delete this.onEnterFrame;
          }
     };
};

```

two\_mc is a movieClip, I want to increase its alpha but stop it when it gets to 50  
I’m sure its simple, but I tryed a few methods without any results.
