# An arrow or something that moves as a button is rolled over

**URL:** https://forum.kirupa.com/t/an-arrow-or-something-that-moves-as-a-button-is-rolled-over/117812
**Category:** Uncategorized
**Created:** [July 30, 2004, 2:38pm UTC](https://forum.kirupa.com/t/an-arrow-or-something-that-moves-as-a-button-is-rolled-over/117812 "2004-07-30T14:38:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![byron\_2](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@byron\_2](https://forum.kirupa.com/u/byron_2)
#### Post date: [July 30, 2004, 2:38pm UTC](https://forum.kirupa.com/t/an-arrow-or-something-that-moves-as-a-button-is-rolled-over/117812/1 "2004-07-30T14:38:08Z")

</div>

An arrow or something that moves as a button is rolled over?

I am sure this has been covered before but i cant find one.

Basically a graffic or movie that moves with easing as a menu pointer?

is there a fla?

---

<div class="post-metadata">

### Author: ![ViNc3](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@ViNc3](https://forum.kirupa.com/u/ViNc3)
#### Post date: [July 31, 2004, 2:39am UTC](https://forum.kirupa.com/t/an-arrow-or-something-that-moves-as-a-button-is-rolled-over/117812/2 "2004-07-31T02:39:16Z")

</div>

```php
 
on (rollOver) {
	yourMovieClip.play();
}
on (rollOut) {
	youMovieClip.stop();
}

```

i think that’s right…

---

<div class="post-metadata">

### Author: ![valpez1](https://avatars.discourse-cdn.com/v4/letter/v/958977/32.png) [@valpez1](https://forum.kirupa.com/u/valpez1)
#### Post date: [July 31, 2004, 4:16am UTC](https://forum.kirupa.com/t/an-arrow-or-something-that-moves-as-a-button-is-rolled-over/117812/3 "2004-07-31T04:16:14Z")

</div>

I think what he/she is after is having an object follow where the mouse goes over the buttons…maybe? If so, i use this for my own site, i have forgotten where i got this code, but here it is:  
[AS]  
onClipEvent (load) {  
\_x = 345;  
div = 8;  
endX = 345;  
// This value just determines the speed  
// the transistions.  
}  
onClipEvent (enterFrame) {  
\_x += (endX-\_x)/div;  
\_parent.btn1.onRollOver = function() {  
endx = 345;  
};  
\_parent.btn2.onRollOver = function() {  
endx = 385;  
};  
}  
[/AS]
