# Button.onRollOver problem

**URL:** <https://forum.kirupa.com/t/button-onrollover-problem/116724>\
**Category:** Uncategorized\
**Created:** [July 20, 2004, 11:10pm UTC](https://forum.kirupa.com/t/button-onrollover-problem/116724 "2004-07-20T23:10:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlkedave](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@mlkedave](https://forum.kirupa.com/u/mlkedave)\
**Post date:** [July 20, 2004, 11:10pm UTC](https://forum.kirupa.com/t/button-onrollover-problem/116724/1 "2004-07-20T23:10:43Z")

</div>

Well i am using the code:  
[AS]  
button.onRollOver = function(){  
this.gotoAndStop(2)  
}  
[/AS]

But the thing is i want to make it so when i roll over the movieclip with the instance name “button”, it will gotoAndStop on frame 2 of a DIFFERENT movieclip (which is located on \_root). Can someone tell me how to do this?

I thought it might look like this:  
[AS]  
button.onRollOver = function(){  
\_root.button.gotoAndStop(2)  
}  
[/AS]  
But that doesn’t seem to work.

Thanks

Mike
