# Loading movies and communication

**URL:** <https://forum.kirupa.com/t/loading-movies-and-communication/34897>\
**Category:** Uncategorized\
**Created:** [November 7, 2003, 5:44pm UTC](https://forum.kirupa.com/t/loading-movies-and-communication/34897 "2003-11-07T17:44:09Z")\
**Posts on this page:** 6\
**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:** [November 7, 2003, 5:44pm UTC](https://forum.kirupa.com/t/loading-movies-and-communication/34897/1 "2003-11-07T17:44:09Z")

</div>

READ JESSE’s POST and now i am and want to make a difference:

i am trying to create a system where 3 buttons open external loaded movies and when button 1 is pressed, it opens movie 1  
and when button 2 is pressed, movie 1 reverses its action and then unloads, and movie 2 loads. my problem is that i have  
buttons 1 and 2 work fine with each other, but the third button isn’t talking to the other 2 buttons correctly and they are all using the same script. i don’t understand how this could go wrong.

script for button 1:

```auto

on (release) {
    loadMovieNum("movie1a.swf", 2);
    if (_level3.line2_mc._currentframe == 5) {
        tellTarget (_level3.line2_mc) {
            gotoAndPlay(6);
            loadMovieNum("movie1a.swf", 2);
        }
        if (_level4.movie3line_mc._currentframe == 5) {
            tellTarget (_level4.movie3line_mc) {
                gotoAndPlay(6);
                loadMovieNum("movie1a.swf", 2);
            }
        }
    }
}

```

the script for buttons 2 & 3 are the same but of course button 1 talks to 2&3,  
and button 2 talks to 1 & 3 and button 3 talks to 1 & 2 (so the names change)

the movie is attached to this email.

thanks and please help.  
jondj24

---

<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:** [November 7, 2003, 6:38pm UTC](https://forum.kirupa.com/t/loading-movies-and-communication/34897/2 "2003-11-07T18:38:56Z")

</div>

I modified your code a little and it’s working perfectly now 🙂

---

<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:** [November 7, 2003, 8:46pm UTC](https://forum.kirupa.com/t/loading-movies-and-communication/34897/3 "2003-11-07T20:46:32Z")

</div>

thanks so much, how come the tellTarget doesn’t work?

---

<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:** [November 7, 2003, 8:54pm UTC](https://forum.kirupa.com/t/loading-movies-and-communication/34897/4 "2003-11-07T20:54:45Z")

</div>

It probably does, but I just thought dot syntax is nicer 🙂

---

<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:** [November 7, 2003, 9:07pm UTC](https://forum.kirupa.com/t/loading-movies-and-communication/34897/5 "2003-11-07T21:07:00Z")

</div>

well 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:** [November 7, 2003, 9:16pm UTC](https://forum.kirupa.com/t/loading-movies-and-communication/34897/6 "2003-11-07T21:16:49Z")

</div>

You’re welcome =)
