# Urgent help with onRollOver function...please

**URL:** <https://forum.kirupa.com/t/urgent-help-with-onrollover-function-please/240615>\
**Category:** Uncategorized\
**Created:** [October 4, 2007, 2:13pm UTC](https://forum.kirupa.com/t/urgent-help-with-onrollover-function-please/240615 "2007-10-04T14:13:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gibry21](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gibry21](https://forum.kirupa.com/u/gibry21)\
**Post date:** [October 4, 2007, 2:13pm UTC](https://forum.kirupa.com/t/urgent-help-with-onrollover-function-please/240615/1 "2007-10-04T14:13:11Z")

</div>

Ok…I have a written 2 functions, ‘over’ and ‘out’…these are used to control the rollover and rollout states of multiple buttons. That all works fine. YOu will also see from the example that each button also controls a movie and onRelease loads it into a movie clip holder. Again…that all works fine.

However, I want the movie clip to be loaded in the holder during the onRollover state now and not the onRelease…how to I rewrite the below function to achieve this, remembering that every button loads a different movie clip on the onRelease state but uses the same functions, ‘over’ and ‘out’…

Please help…urgent help required.

side\_btn.onRollOver = over;  
side\_btn.onRollOut = out;  
side\_btn.onRelease = function() {  
loader.\_visible = true;  
mcl.loadClip(“side\_shoe\_big.swf”, holder);  
}

function over () {  
this.gotoAndPlay(2);  
}  
function out () {  
this.gotoAndPlay(7);  
}

PLease help…thank you.
