# Loading 2 .swf movies?

**URL:** <https://forum.kirupa.com/t/loading-2-swf-movies/23528>\
**Category:** Uncategorized\
**Created:** [June 19, 2003, 3:07am UTC](https://forum.kirupa.com/t/loading-2-swf-movies/23528 "2003-06-19T03:07:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![peace](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@peace](https://forum.kirupa.com/u/peace)\
**Post date:** [June 19, 2003, 3:07am UTC](https://forum.kirupa.com/t/loading-2-swf-movies/23528/1 "2003-06-19T03:07:14Z")

</div>

Hi, how can i load 2 .swf movies simultaneously through one load movie action button ?

---

<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:** [June 19, 2003, 3:21am UTC](https://forum.kirupa.com/t/loading-2-swf-movies/23528/2 "2003-06-19T03:21:23Z")

</div>

have the same code in the button…

have 2 movie clips you want the movies to load into…

and put this on your button:

* * *

on(press){  
loadmove(“whavever1.swf”,\_root.Mc1);  
loadMovie(“whatever2.swf”,\_root.Mc2);

}

* * *

something like tha.t

---

<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:** [June 19, 2003, 3:29am UTC](https://forum.kirupa.com/t/loading-2-swf-movies/23528/3 "2003-06-19T03:29:18Z")

</div>

It didn’t work ,only one movie loaded and it overlapped, it did not place where i wanted it to . Thanks for your help .

---

<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:** [June 20, 2003, 1:15am UTC](https://forum.kirupa.com/t/loading-2-swf-movies/23528/4 "2003-06-20T01:15:41Z")

</div>

Other suggestions please from anyone .  
Thankyou .  
Peace.

---

<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:** [June 21, 2003, 12:17am UTC](https://forum.kirupa.com/t/loading-2-swf-movies/23528/5 "2003-06-21T00:17:14Z")

</div>

## The reason only one showed up was because they typed one of the lines incorrectly. It should be:

on(press){  
loadMovie(“whavever1.swf”,\_root.Mc1);  
loadMovie(“whatever2.swf”,\_root.Mc2);

## }

As for what you can do about overlapping, I couldn’t help you there…

---

<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:** [June 21, 2003, 5:18am UTC](https://forum.kirupa.com/t/loading-2-swf-movies/23528/6 "2003-06-21T05:18:05Z")

</div>

Thankyou 🙂 SetroGamer ,i’ll try that .

Is it possible to have options here like making the movies overlap when i want to and place at a certain position when i want to ? can anyone help ?  
Thankyou.

---

<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:** [June 21, 2003, 5:33am UTC](https://forum.kirupa.com/t/loading-2-swf-movies/23528/7 "2003-06-21T05:33:17Z")

</div>

You could change their stacking order to make them overlap eachother. Find a tutor [here](http://www.kirupa.com/developer/actionscript/swapdepth.htm).  
To place them at a certain position, simply use

\_root.mc1.\_x = xposition;  
\_root.mc1.\_y = yposition;  
\_root.mc2.\_x = xposition;  
\_root.mc2.\_y = yposition;

Of course, xposition and yposition have to be replaced by the x and y coordinates of the movie you are loading the other ones in when at the place you want them to load.

Hope this helps.

---

<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:** [June 22, 2003, 8:38am UTC](https://forum.kirupa.com/t/loading-2-swf-movies/23528/8 "2003-06-22T08:38:25Z")

</div>

Thanks.  
The prob. is still there. i saw a couple of sites in which the developers did 2 things , i think . When i pressed the buttons (service etc.) 2 things took place one was “loadmovie” the other was “sliding picture”, i think both of those developers had given 2 different actions to every button .one action loaded the movie and the other moved the bg pic. inside a box .i don’t remember those sites’ names , i think one was jontom .com or something ,it was placed at sotw section of these forums ,today i tried to visit jontom site it said page under const., now maybe it was the same site i mentioned maybe some else . i hope i’ve stated my question clearly but if u don’t understand what i’m trying to say please ask again so that i explain more .  
Thankyou.  
Peace.
