# Alpha Changes with Actionscript

**URL:** <https://forum.kirupa.com/t/alpha-changes-with-actionscript/225713>\
**Category:** flash\
**Created:** [May 15, 2007, 3:38am UTC](https://forum.kirupa.com/t/alpha-changes-with-actionscript/225713 "2007-05-15T03:38:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vankaizer](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/vankaizer/32/3614_2.png) [@vankaizer](https://forum.kirupa.com/u/vankaizer)\
**Post date:** [May 15, 2007, 3:38am UTC](https://forum.kirupa.com/t/alpha-changes-with-actionscript/225713/1 "2007-05-15T03:38:30Z")

</div>

ok. I’m using Flash 8, and every time I run the code I get an error message. It goes like this.

```auto

fadebox1._alpha = 0;

fader = function() {

             while (fadebox1._alpha < 100) {
                        fadebox1._alpha = +2;
                      }
}

```

After I do that, flash freezes for a while and tells me to cancel my script otherwise I’m gonna slow down.

All I want to do is create a fade in animation for my fadebox1 without using the timeframe, am I doing something wrong here?
