# Alpha on rollover

**URL:** <https://forum.kirupa.com/t/alpha-on-rollover/81268>\
**Category:** Uncategorized\
**Created:** [March 1, 2005, 8:20am UTC](https://forum.kirupa.com/t/alpha-on-rollover/81268 "2005-03-01T08:20:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LippuZz](https://avatars.discourse-cdn.com/v4/letter/l/3d9bf3/32.png) [@LippuZz](https://forum.kirupa.com/u/LippuZz)\
**Post date:** [March 1, 2005, 8:20am UTC](https://forum.kirupa.com/t/alpha-on-rollover/81268/1 "2005-03-01T08:20:21Z")

</div>

i’m trying to learn some AS. Now i made some simple code which should bring the alpha down step by step, en bring it back up when rolling outside.

```auto

on(rollOver){
	for(i=0; i <= 100; i++){
		this._alpha = this._alpha - 1;
	}
}

```

this is the part for alpha down as you can see, but i think this goes way to fast. how can i slow this progress down?
