# Loading external swfs

**URL:** https://forum.kirupa.com/t/loading-external-swfs/12029
**Category:** flash
**Created:** [January 25, 2003, 6:03pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029 "2003-01-25T18:03:31Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![daveg92656](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@daveg92656](https://forum.kirupa.com/u/daveg92656)
#### Post date: [January 25, 2003, 6:03pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/1 "2003-01-25T18:03:31Z")

</div>

Hello all,

Still having the same troubles placing everything correctly. How do I load external swfs into the correct position? Or how do I place a loaded movie in the position I want? To test, I made a new file and loaded a blank movie clip, named “blankhost” and another movie clip with just a box on it, named “host”. Then I made 2 buttons, with the code:

on(release){  
loadMovie(“movie.swf”, “blankhost”);  
}

on(release){  
loadMovie(“movie.swf”, “host”);  
}

I can get the movie to load into the new page, however the placement is not where I want it. For example, how does kirupa load this little ‘crosshairs’ graphic in just that little area?

[http://www.kirupa.com/developer/actionscript/index.htm](http://www.kirupa.com/developer/actionscript/index.htm)

or how does this wall bounce swf, stay in the little area on the page?

[http://www.flashcircle.com/display.php?storyid=46](http://www.flashcircle.com/display.php?storyid=46)

I’m trying to use loadMovie but cannot get the placement right of the external swfs. Thanks for any help!!8]

---

<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: [January 25, 2003, 6:24pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/2 "2003-01-25T18:24:55Z")

</div>

make your to-be-loade movies with the same stage dimension on the main movie, and place them were you want them to be.  
then, when you load them, they will be in that exact same spot.

helped?

=)

---

<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: [January 25, 2003, 8:28pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/3 "2003-01-25T20:28:09Z")

</div>

Hi GuigO,  
thanks for the reply, but I am still confused. I have attached files if you coulc please look at them. The first titled “1\_24\_03host” is the main movie in which I have 2 buttons (only 1 rigged up) and a blank mc and another mc in which I drew a blue box. The second file titled “to\_export\_tooth1” is a tooth graphic which bounces around. The effect I am trying to achieve is to have the tooth bounce around within the blue box.

So, on the main timeline, “1\_24\_03host” how do I properly position the mc’s to hold my loaded mc? Please take a look and let me know your thoughts. thanks, :sigh:

---

<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: [January 25, 2003, 8:28pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/4 "2003-01-25T20:28:53Z")

</div>

GuigO,

here is the second file in which I am trying to place in a specific area. thanks, dave.

---

<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: [January 25, 2003, 8:51pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/5 "2003-01-25T20:51:03Z")

</div>

GuigO,

here is the second file in which I am trying to place in a specific area. thanks, dave.

---

<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: [January 25, 2003, 9:09pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/6 "2003-01-25T21:09:38Z")

</div>

you got a lot of errors there…

let me fix that for ya, but can you tell me if that “to\_export\_tooth1” file need to be loaded on “1\_24\_03host” or if i can put them together in a single file?

:q:

---

<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: [January 25, 2003, 9:27pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/7 "2003-01-25T21:27:45Z")

</div>

Hi GuigO,

Yes, you can combine the files. These are only an example files in which I was trying the placement thing. The real file in which I am trying to do is too large to attach here. That is why I’m trying to break it up! To be able to load smaller movies. but yes, please, any suggestions you have would be great. thanks again:beam:

---

<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: [January 25, 2003, 9:33pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/8 "2003-01-25T21:33:24Z")

</div>

I also fixed some other mistakes (-:

---

<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: [January 25, 2003, 9:35pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/9 "2003-01-25T21:35:27Z")

</div>

got to go now. :run:

if you have any more questions, post´em here and i help ya later.

see ya :bounce:

---

<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: [January 26, 2003, 12:17am UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/10 "2003-01-26T00:17:20Z")

</div>

Hi GuigO,

Thanks for the help. I hate to keep bothering you but the file you sent back to me would not open in my version of Flash. The version I am using is Flash 5.0 r30. I think the file you sent is version 5.0 r60. Could you please re-send it in the r30 format, or how do I upgrade to your format? Are you running Flash MX?  
thanks, dave.

---

<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: [January 26, 2003, 12:48am UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/11 "2003-01-26T00:48:16Z")

</div>

i keep forgeting about that. sorry.

i´ll reinstall the F5 on my machine and do that for ya. maybe tomorrow is done.

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: [January 26, 2003, 1:02am UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/12 "2003-01-26T01:02:35Z")

</div>

Sounds good, thanks for your help.:beard:

---

<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: [January 30, 2003, 6:00pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/13 "2003-01-30T18:00:18Z")

</div>

When you load an external movie into a blank movie clip, it is a simple matter to position that clip (and the swf it contains) anywhere you want:

myClip.loadMovie(“xMovie.swf”);  
myClip.\_x=100;  
myClip.\_y=100;

In this example, myClip is the instance name of a blank movie clip from your library. Drag the blank movie clip onto the stage (on the layer you want), and give it the instance name (in this case) of myClip. Now you can position the clip anywhere you want using the format of the sample lines, above, which would position your clip at 100,100.

Hope that helps.  
sp

---

<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: [January 30, 2003, 8:26pm UTC](https://forum.kirupa.com/t/loading-external-swfs/12029/14 "2003-01-30T20:26:03Z")

</div>

yes, it does, thank you Splinx…
