# MC with rollover help please!

**URL:** https://forum.kirupa.com/t/mc-with-rollover-help-please/190880
**Category:** flash
**Created:** [June 15, 2006, 10:37am UTC](https://forum.kirupa.com/t/mc-with-rollover-help-please/190880 "2006-06-15T10:37:36Z")
**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 15, 2006, 10:37am UTC](https://forum.kirupa.com/t/mc-with-rollover-help-please/190880/1 "2006-06-15T10:37:36Z")

</div>

I have an MC with an animation and autoscroll code on it. I only want the autoscroll to be activated when the animation has played through to the end. Here’s my code…

if (this.employmenttext\_mc.play = true);

\_root.onEnterFrame = function () {  
if(\_root.\_xmouse \> 328 && \_root.\_xmouse \< 800 && \_root.\_ymouse \> 130 && \_root.\_ymouse \< 540)  
this.employmenttext\_mc.\_y = -(695/409 \* \_root.\_ymouse) +335;  
this.employmenttext\_mc.onRollOut = function() {  
if (this.rewind = true) {  
this.\_y = 130};  
}  
}

Can you spot the mistake? If you can help me see where I’ve gone wrong that would be great.

Cheers

Luke
