# Applying an actionscript to a movie clip killed its buttons

**URL:** <https://forum.kirupa.com/t/applying-an-actionscript-to-a-movie-clip-killed-its-buttons/93093>\
**Category:** Uncategorized\
**Created:** [October 25, 2003, 4:04pm UTC](https://forum.kirupa.com/t/applying-an-actionscript-to-a-movie-clip-killed-its-buttons/93093 "2003-10-25T16:04:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiaroobscuro](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@chiaroobscuro](https://forum.kirupa.com/u/chiaroobscuro)\
**Post date:** [October 25, 2003, 4:04pm UTC](https://forum.kirupa.com/t/applying-an-actionscript-to-a-movie-clip-killed-its-buttons/93093/1 "2003-10-25T16:04:14Z")

</div>

I am nearing completion of week 1 of my crash course in Flash. I figured out how to make easing menus w/ rollover / rollout but now that i’ve applied the actionscript to the menu the button states on the easing menu no longer work … what do I do to fix this ?

THE CODE I HAVE ON THE MOVIE CLIP:  
onClipEvent (load) {  
\_x = 20;  
speed = 5;  
}  
onClipEvent (enterFrame) {  
\_x += (endX-\_x)/speed;  
}

on (RollOver) {  
endX = 211;  
}

on (RollOut) {  
endX = 20;  
}
