# Communication between multiple movies

**URL:** <https://forum.kirupa.com/t/communication-between-multiple-movies/126892>\
**Category:** Uncategorized\
**Created:** [October 28, 2004, 5:12am UTC](https://forum.kirupa.com/t/communication-between-multiple-movies/126892 "2004-10-28T05:12:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jondj24](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jondj24](https://forum.kirupa.com/u/jondj24)\
**Post date:** [October 28, 2004, 5:12am UTC](https://forum.kirupa.com/t/communication-between-multiple-movies/126892/1 "2004-10-28T05:12:55Z")

</div>

hello.  
i am having trouble with communication between loaded movies.  
Here is my situation;  
i have a Random array, which provides a random background for 4 different movies. This array is loaded into a emptyClip, which is contained on level1. and looks like so:

```auto

randomClips = new Array("intro_1.swf", "intro_2.swf", "intro_3.swf", "intro_4.swf");
function randomBackground() {
	randomNumber = random(randomClips.length);
	loadMovie(randomClips[randomNumber], "_root.mtClip");
}
randomBackground();

```

on level10 i have a button that i would like to move the timeline of those randomClips(intro\_1.swf,etc.)

In those intro clips, frame 1-38 play a tween, on frame 38 there a stop action and on frame 39-53 it reverses the tween.

in that button i have:

```auto

on (release) {
_level1.mtClip.bg_movie.gotoAndPlay(39)
}

```

and i also tried:

```auto

on (release) {
	if (_level1.mtClip.bg_pic._currentframe == 38) {
		tellTarget (_level0.mtClip.bg_pic) {
			gotoAndPlay(39);
		}
	}
}

```

neither of these codes work. again, i would like that button on level10 to move the timeline in those intro movies.

thanks.
