# Complex Button Rollover/out Effect Help

**URL:** <https://forum.kirupa.com/t/complex-button-rollover-out-effect-help/169994>\
**Category:** flash\
**Created:** [November 21, 2005, 10:06pm UTC](https://forum.kirupa.com/t/complex-button-rollover-out-effect-help/169994 "2005-11-21T22:06:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZeypheR](https://avatars.discourse-cdn.com/v4/letter/z/ba9def/32.png) [@ZeypheR](https://forum.kirupa.com/u/ZeypheR)\
**Post date:** [November 21, 2005, 10:06pm UTC](https://forum.kirupa.com/t/complex-button-rollover-out-effect-help/169994/1 "2005-11-21T22:06:38Z")

</div>

Ok, so this time I think I have a less complicated question. I’ve applied the [Complex Button Rollover/out Effect](http://www.kirupa.com/developer/mx2004/button_effect.htm) tutorial with no problems, but now I would like to have the same button control a Movie Clip in the same scene. I gave the MC an instance name of ‘image’, and tried replacing ‘this’ variable with ‘image’ naively thinking that it would do a similar effect to what Tell Target does. This is what I have on one button:

```auto
stop();
 
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
 
this.onRollOver = function(){
rewind = false;
play();
} 

this.onRollOut = function(){
rewind = true;
}

image.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
 
image.onRollOver = function(){
rewind = false;
play();
} 

image.onRollOut = function(){
rewind = true;
}

```

I was hoping it would be that easy but I guess not :cantlook:

Something tells me it’s an easy solution, but then again I thought a simple replacement would work =/

Any help would be much appreciated. Thanks.

[color=DarkRed] Attachment[/color] - [wcc\_home.fla](http://adrian.depth-core.com/file/wcc_home.fla)
