# Simple AS movement problem

**URL:** <https://forum.kirupa.com/t/simple-as-movement-problem/201610>\
**Category:** Uncategorized\
**Created:** [September 22, 2006, 11:27pm UTC](https://forum.kirupa.com/t/simple-as-movement-problem/201610 "2006-09-22T23:27:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigepmest37](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sigepmest37](https://forum.kirupa.com/u/sigepmest37)\
**Post date:** [September 22, 2006, 11:27pm UTC](https://forum.kirupa.com/t/simple-as-movement-problem/201610/1 "2006-09-22T23:27:36Z")

</div>

I have an mc on stage for 300 frames. i have this code on the mc:

```auto

onClipEvent(enterFrame) {
    speed = .1;
    this._xscale += speed;
    this._yscale += speed;
    this._x -= speed*5;
    this._y += speed*2;
    
}

```

this moves the mc and resizes it slowly.

My problem is that in the last 15 frames that it is on stage I want it to fade out.

Any suggestions?

thanks
