# Why wont this script work?!

**URL:** <https://forum.kirupa.com/t/why-wont-this-script-work/179969>\
**Category:** flash\
**Created:** [February 24, 2006, 9:31am UTC](https://forum.kirupa.com/t/why-wont-this-script-work/179969 "2006-02-24T09:31:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crapitoutjim](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@crapitoutjim](https://forum.kirupa.com/u/crapitoutjim)\
**Post date:** [February 24, 2006, 9:31am UTC](https://forum.kirupa.com/t/why-wont-this-script-work/179969/1 "2006-02-24T09:31:47Z")

</div>

I am trying to create a menu system that has several buttons flying out. I have put the following script on my buttons and it just wont work, I cant understand why not. I am using Flash 8, as2 and a flash 8 player

onClipEvent(load){  
tx=100;  
ty=100;  
k=.2;  
damp=.9;  
}  
onClipEvent(enterFrame){  
if(!drag){  
ax=(tx-\_x)_k;  
ay=(ty-\_y)k;  
vx+=ax;  
vy+=ay;  
vx=damp;  
vy_=damp;  
\_x+=vx;  
\_y+=vy;  
}  
}
