# Onrollout mc

**URL:** <https://forum.kirupa.com/t/onrollout-mc/154916>\
**Category:** Uncategorized\
**Created:** [July 13, 2005, 3:44pm UTC](https://forum.kirupa.com/t/onrollout-mc/154916 "2005-07-13T15:44:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![werther](https://avatars.discourse-cdn.com/v4/letter/w/b9e5f3/32.png) [@werther](https://forum.kirupa.com/u/werther)\
**Post date:** [July 13, 2005, 3:44pm UTC](https://forum.kirupa.com/t/onrollout-mc/154916/1 "2005-07-13T15:44:43Z")

</div>

Hello and thank you ahead of time for any help.  
I wish to create a site navigation system similar to the one found on [www.jboogie.com](http://www.jboogie.com)  
[url=“[http://www.jboogie.com/](http://www.jboogie.com/)”]  
Heres what I have done:  
I created a buttons, however as symbols they are movie clips as I tend to use movie clips for functionality over buttons. I then created my box drop animation(box\_mc)  
I plugged in this actionscript to the maintimeline

button.onRollOver = function(){  
box\_mc.gotoAndPlay(suchandsuch);  
};  
box1.useHandCursor=false;  
box\_mc.onRollOut = function(){  
box\_mc.gotoAndPlay(suchandsuch);  
};

And this pretty much works except in order for the box\_mc to ‘rewind’ I have to take the cursor out of it then back in then out again. I wish to make an if statement that says if the user takes the cursor out of box\_mc then the mc will gotoAndPlay a specific frame. All the if statements I have tried have been complete failures. If someone could please give me some suggestions. Perhaps I am going about this project completely wrong.  
thanks again for any help-  
-werther
