# Trying to recreate loadmovie with As3......addchild problems

**URL:** https://forum.kirupa.com/t/trying-to-recreate-loadmovie-with-as3-addchild-problems/291737
**Category:** Uncategorized
**Created:** [July 4, 2009, 8:36am UTC](https://forum.kirupa.com/t/trying-to-recreate-loadmovie-with-as3-addchild-problems/291737 "2009-07-04T08:36:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dtrace](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dtrace](https://forum.kirupa.com/u/dtrace)
#### Post date: [July 4, 2009, 8:36am UTC](https://forum.kirupa.com/t/trying-to-recreate-loadmovie-with-as3-addchild-problems/291737/1 "2009-07-04T08:36:24Z")

</div>

I want to load in external swfs into an mc on the root called ‘holder’.

In As2, I would just do loadMovie(“whatever.swf”, this.holder);

And if I loaded another swf into that same holder it would replace the contents with the new swf.

But now, I’m trying As3 and doing…  
var i =new Loader();  
i.load(new URLRequest(“contact.swf”));  
this.holder.addChild(i)

When I repeat this code, for another external swf, I want it to replace the first one, but it appears to not be doing that. I fear that this addChild, is simply adding more mc’s within my main holder mc.

So I don’t know how to match the functionality that I liked from As2. Help?
