# Complex rollover effect question

**URL:** https://forum.kirupa.com/t/complex-rollover-effect-question/190592
**Category:** flash
**Created:** [June 13, 2006, 11:18am UTC](https://forum.kirupa.com/t/complex-rollover-effect-question/190592 "2006-06-13T11:18:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lukebattye](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@lukebattye](https://forum.kirupa.com/u/lukebattye)
#### Post date: [June 13, 2006, 11:18am UTC](https://forum.kirupa.com/t/complex-rollover-effect-question/190592/1 "2006-06-13T11:18:25Z")

</div>

Hi there,

I have a movie clip with autoscroll, on rollout I want it to move back to its original position.

I tried this on the frame my mc is in…

[COLOR=navy]this.onRollOut = function() {  
this.\_y = 130;  
}

[COLOR=black]This is my code for the autoscroll…[/COLOR]

\_root.onEnterFrame = function () {  
if(\_root.\_xmouse \> 328 && \_root.\_xmouse \< 800 && \_root.\_ymouse \> 120 && \_root.\_ymouse \< 540)  
this.employmenttext\_mc.\_y = -(622/420 \* \_root.\_ymouse) +130;  
}  
[/COLOR]

where y=130 is the y value i want it to return to on rollout. Where am I going wrong?

Thanks for your time 🙂
