# rollOver in an MC trigger play(); in a different MC

**URL:** <https://forum.kirupa.com/t/rollover-in-an-mc-trigger-play-in-a-different-mc/231444>\
**Category:** flash\
**Created:** [July 4, 2007, 9:15pm UTC](https://forum.kirupa.com/t/rollover-in-an-mc-trigger-play-in-a-different-mc/231444 "2007-07-04T21:15:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ExoVoid](https://avatars.discourse-cdn.com/v4/letter/e/ee59a6/32.png) [@ExoVoid](https://forum.kirupa.com/u/ExoVoid)\
**Post date:** [July 4, 2007, 9:15pm UTC](https://forum.kirupa.com/t/rollover-in-an-mc-trigger-play-in-a-different-mc/231444/1 "2007-07-04T21:15:45Z")

</div>

Hi y’all,  
I have two MC’s on the root timeline. Inside MC1, there is a rollover object, what I  
want to do is when it is rolledover, it will play() MC2 (MC2’s instance name is bg\_fade).  
Also, when it is rolledout of, I want it to rewind bg\_fade.  
The AS I’ve tried so far is:

```auto

//in MC1:
stop();

var rewind:Boolean;

this.onEnterFrame = function(){
    if(rewind == true){  
        prevFrame();
        bg_fade.prevFrame();
    }
}

this.onRollOver = function(){
    _root.stop();
    bg_fade.play();
    rewind = false;
    play(); 
}

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

this.onMouseDown = function(){
    rewind = true
    _root.play();
}

```

I’m using flash CS3 trial, with publishing settings set to AS2.0 and flash8.  
I know that it’s probably the wrong way to go about doing it using bg\_fade.play();, but I had no idea what to do, pity it didn’t work, though… any suggestions?
