# Dynamic Alpha

**URL:** <https://forum.kirupa.com/t/dynamic-alpha/159050>\
**Category:** flash\
**Created:** [August 14, 2005, 8:41am UTC](https://forum.kirupa.com/t/dynamic-alpha/159050 "2005-08-14T08:41:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meridian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/meridian/32/243_2.png) [@Meridian](https://forum.kirupa.com/u/Meridian)\
**Post date:** [August 14, 2005, 8:41am UTC](https://forum.kirupa.com/t/dynamic-alpha/159050/1 "2005-08-14T08:41:36Z")

</div>

I’m using this code to move things around on the stage

```auto
onClipEvent (load) {
	easeMove = function (xpos, ypos) {
		_x += (xpos-_x)/7;
		_y += (ypos-_y)/7;
	};

```

So I thought if I modified my code to work with an alpha that would be cool.

```auto
onClipEvent (load) {
	easeFade = function (fadeUp, fadeDown) {
		_alpha += (fadeUp-_alpha)/7;
                _alpha += (fadeDown-_alpha)/7;
	};

```

button triggers

```auto
	services.onEnterFrame = function() {
		this.easeMove(62, 10);
	    this.easeFade(50,0)
	};

```

What is it I’m missing?
