# MX Communication between movies

**URL:** https://forum.kirupa.com/t/mx-communication-between-movies/18195
**Category:** flash
**Created:** [April 14, 2003, 11:54am UTC](https://forum.kirupa.com/t/mx-communication-between-movies/18195 "2003-04-14T11:54:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Lmackenzie](https://avatars.discourse-cdn.com/v4/letter/l/f19dbf/32.png) [@Lmackenzie](https://forum.kirupa.com/u/Lmackenzie)
#### Post date: [April 14, 2003, 11:54am UTC](https://forum.kirupa.com/t/mx-communication-between-movies/18195/1 "2003-04-14T11:54:16Z")

</div>

I’ve got an html page with 2 different movies: ‘movie1.swf’ and ‘movie2.swf’. Is there a way that ‘movie1.swf’ can play to a certain frame and when it reaches that frame, can tell ‘movie2.swf’ to start playing? The thing is they are 2 separate swfs rather than 2 movie clips within the same swf.

Thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 14, 2003, 12:39pm UTC](https://forum.kirupa.com/t/mx-communication-between-movies/18195/2 "2003-04-14T12:39:51Z")

</div>

I think you have to use \_global variables to do that…I think [kirupa.com](http://kirupa.com) has a tut for that I think… try searching the forums and the tuts.

Cheers

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 16, 2003, 10:11am UTC](https://forum.kirupa.com/t/mx-communication-between-movies/18195/3 "2003-04-16T10:11:20Z")

</div>

would be to have an MC which loads both the swfs into it. That way you can have quite a lot of control i.e. checking which frame 1.swf is up to before triggering 2.swf  
I have been doing it with

\_root.createEmptyMovieClip(“thingy”, 1);  
thingy.loadMovie(“assets/1.swf”);

then you can load the second (and more ) MCs in as the first is playing

\_root.createEmptyMovieClip(“thingy”+N, N);  
[thingy+N]loadMovie(“assets/”+N+".swf");
