# Syncing two movieClips onRollOver

**URL:** <https://forum.kirupa.com/t/syncing-two-movieclips-onrollover/247195>\
**Category:** flash\
**Created:** [December 19, 2007, 2:06pm UTC](https://forum.kirupa.com/t/syncing-two-movieclips-onrollover/247195 "2007-12-19T14:06:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoxheaD](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@BoxheaD](https://forum.kirupa.com/u/BoxheaD)\
**Post date:** [December 19, 2007, 2:06pm UTC](https://forum.kirupa.com/t/syncing-two-movieclips-onrollover/247195/1 "2007-12-19T14:06:18Z")

</div>

First of all, final swf file size needs to be max 30kb. So I can not use Fuse (which would do the job automatically for some reason) nor complex stuff.

I have timeline tweened a image to scale (loops like a heartbeat) on main scene. Then on onRollOver another movieClip appears with different image but with “same” timeline tween (same as in keyframes in same frames and animation the same lenght).

When I hover my mouse on top of the “main” image, which is pulsating, the appearing movieClip is pulsating in the same rhythm but out of sync.

Any ideas?

my code so far:

```auto
import caurina.transitions.Tweener;

var my_sound:Sound = new Sound();

logo_mc.onRollOver = function() {
    
my_sound.attachSound("heartbeat");
my_sound.start(0, 99);

attachMovie("tarkkuutta_mc", "tarkkuutta_mc", 10);
tarkkuutta_mc._x = 270;
tarkkuutta_mc._y = 245;
tarkkuutta_mc._alpha = 0;
Tweener.addTween(tarkkuutta_mc, {_alpha:100, time:2});

};

var my_sound_stop:Sound = new Sound();

logo_mc.onRollOut = function() {
my_sound_stop.attachSound("heartbeat");
my_sound_stop.stop();

Tweener.addTween(tarkkuutta_mc, {_alpha:1, time:2});

};

```
