# Basic Animation Actionscript (Flash MX 2004)

**URL:** <https://forum.kirupa.com/t/basic-animation-actionscript-flash-mx-2004/275418>\
**Category:** flash\
**Created:** [November 13, 2008, 5:17pm UTC](https://forum.kirupa.com/t/basic-animation-actionscript-flash-mx-2004/275418 "2008-11-13T17:17:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fleury](https://avatars.discourse-cdn.com/v4/letter/f/f14d63/32.png) [@Fleury](https://forum.kirupa.com/u/Fleury)\
**Post date:** [November 13, 2008, 5:17pm UTC](https://forum.kirupa.com/t/basic-animation-actionscript-flash-mx-2004/275418/1 "2008-11-13T17:17:19Z")

</div>

Hi everyone,  
I have a basic animation question. I am doing a banner for a website that I already have up and running. The animation that I want is a movieClip to slowly move up then down then up then down…ect. Basically a never ending loop.This is the code that I have so far;

onClipEvent(load) {  
speedY=3;  
}  
onClipEvent(enterFrame) {  
this.\_y +=speedY;  
if (this.\_y \>=500) {  
speedY-=speedY;  
} else if(this.\_y \<=0) {  
speedY-=speedY;  
}  
}

The clip doesn’t move and I haven’t figured out why. Maybe this is something that is beyond my knowledge? I’m pretty much new to this but I’m trying to learn. :dilbert:  
Thanks!
