# Loadmovie

**URL:** https://forum.kirupa.com/t/loadmovie/25669
**Category:** Uncategorized
**Created:** [July 15, 2003, 4:09pm UTC](https://forum.kirupa.com/t/loadmovie/25669 "2003-07-15T16:09:30Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![alphaville](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@alphaville](https://forum.kirupa.com/u/alphaville)
#### Post date: [July 15, 2003, 4:09pm UTC](https://forum.kirupa.com/t/loadmovie/25669/1 "2003-07-15T16:09:30Z")

</div>

Hi,

If I am going to load a new movie onto existing movie by using “loadmovie” command. Is it possible to arrange the location of the loaded movie (x,y coordinates) by using action script?

Thank you.

Alphaville

---

<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: [July 15, 2003, 4:27pm UTC](https://forum.kirupa.com/t/loadmovie/25669/2 "2003-07-15T16:27:56Z")

</div>

Yes

---

<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: [July 15, 2003, 4:31pm UTC](https://forum.kirupa.com/t/loadmovie/25669/3 "2003-07-15T16:31:39Z")

</div>

yeah you can use target, however i just lay out my movie with the proper x, and y coordinates and save it like that. then when i load my new movie, everything is where it is supposed to be

---

<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: [July 15, 2003, 4:42pm UTC](https://forum.kirupa.com/t/loadmovie/25669/4 "2003-07-15T16:42:39Z")

</div>

Thanks for replies,

But my problem is existing movie has a larger window size than loaded one. So I need to load it into a location. I managed it by using loadtarget command. But i am not good at it and because I have many files I confuse with that. So I prefer to use “loadmovie” into levels.

How can I put the loaded movie to a specific location and a level?

Alphaville

---

<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: [July 15, 2003, 4:49pm UTC](https://forum.kirupa.com/t/loadmovie/25669/5 "2003-07-15T16:49:30Z")

</div>

this is what i do, where ever you want the content to show up, meaning your layout of your second swf, put in your index, just to align. when everything looks ok, cut and paste it in your new .swf

then you can load it like this

[AS]  
button1.onRelease = function(){  
loadMovieNum(“yourmovie.swf”,1); // 1 is the level  
unloadMovieNum(2);  
}

button2.onRelease = function(){  
loadMovieNum(“anotherMovie.swf”,2);  
unloadMovieNum(1);  
}

[/AS]

get it?

---

<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: [July 15, 2003, 5:18pm UTC](https://forum.kirupa.com/t/loadmovie/25669/6 "2003-07-15T17:18:16Z")

</div>

Hmm … I read your question apart from everything else, and what I’d suggest is:

[AS]  
\_root.holder.\_x = 53;  
\_root.holder.\_y = 30;  
\_root.holder.loadMovie(“yourmovie.swf”);  
[/AS]

Of course, 53 and 30 are dummy numbers, replace them by the x and y position of where you want your movieclip to be located.

---

<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: [July 15, 2003, 5:28pm UTC](https://forum.kirupa.com/t/loadmovie/25669/7 "2003-07-15T17:28:02Z")

</div>

> \*Originally posted by Voetsjoeba \*  
> \*\*Hmm … I read your question apart from everything else, and what I’d suggest is:

[AS]  
\_root.holder.\_x = 53;  
\_root.holder.\_y = 30;  
\_root.holder.loadMovie(“yourmovie.swf”);  
[/AS]

Of course, 53 and 30 are dummy numbers, replace them by the x and y position of where you want your movieclip to be located. \*\*

that would be your best solution

---

<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: [July 15, 2003, 5:35pm UTC](https://forum.kirupa.com/t/loadmovie/25669/8 "2003-07-15T17:35:19Z")

</div>

thanks for all replies,

I managed to load into location. Related to this question I would like to learn that, is it possible to change the origin of the main movie. So when I load a new movie, it can go to according to a new origin. I attached an image to make my question understanable. I wanna move the origin (0,0) to a red point.

Is it possibe?

Alphaville

---

<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: [July 15, 2003, 5:37pm UTC](https://forum.kirupa.com/t/loadmovie/25669/9 "2003-07-15T17:37:44Z")

</div>

\_root.holder.\_x = 53;  
\_root.holder.\_y = 30;  
\_root.holder.loadMovie(“yourmovie.swf”);

then do

\_root.holder.\_x = \_root.holder.\_x+50;  
\_root.holder.\_y = \_root.holder.\_y;

---

<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: [July 15, 2003, 5:59pm UTC](https://forum.kirupa.com/t/loadmovie/25669/10 "2003-07-15T17:59:05Z")

</div>

oww, thanks

I have a last question, sorry for many questions but your comments help me a lot,

Is it possible to load a new movie into a center of the main movie directly by a specific command?

I attached an image to expakin clearly. The gray color is a main movie (level 1)and the red one is loaded movie (level 2). (their widhts are same size)

Alphaville
