# Loading an swf from another in a specific position on the screen

**URL:** https://forum.kirupa.com/t/loading-an-swf-from-another-in-a-specific-position-on-the-screen/269152
**Category:** flash
**Created:** [August 23, 2008, 12:43pm UTC](https://forum.kirupa.com/t/loading-an-swf-from-another-in-a-specific-position-on-the-screen/269152 "2008-08-23T12:43:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yogster](https://avatars.discourse-cdn.com/v4/letter/y/8491ac/32.png) [@yogster](https://forum.kirupa.com/u/yogster)
#### Post date: [August 23, 2008, 12:43pm UTC](https://forum.kirupa.com/t/loading-an-swf-from-another-in-a-specific-position-on-the-screen/269152/1 "2008-08-23T12:43:44Z")

</div>

Hi,

I’m new to flash and am trying to load an swf in one of the swf. The problem is that the swf loads on its default position and I dont want that. So how can i go about resolving this.

Thanks in advance

Yogster

---

<div class="post-metadata">

### Author: ![joran420](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joran420/32/2329_2.png) [@joran420](https://forum.kirupa.com/u/joran420)
#### Post date: [August 23, 2008, 6:41pm UTC](https://forum.kirupa.com/t/loading-an-swf-from-another-in-a-specific-position-on-the-screen/269152/2 "2008-08-23T18:41:00Z")

</div>

the problem is all the data in the clip is removed when a movieclip is loaded in.  
2 get around that you can either place the swfClip inside a holderclip and position the holderclip.  
var holderclip = \_root.createEmptyMovieClip(“holder1”,1);  
var loadedclip = holderclip.createEmptyMovieClip(“swf”,1);  
holderclip.\_x = X  
holderclip.\_y = Y  
loadedclip.loadMove(‘includes/swf1.swf’);//or a url

a better but more complicated solution is using the MovieClipLoader component and listen for onLoadInit and then do something AFTER the clip loads…but thats a little more complicate and theres tons of tutorials on MovieClipLoader out there so you can figure that one out on your own 😛
