# Loader question

**URL:** <https://forum.kirupa.com/t/loader-question/260653>\
**Category:** Uncategorized\
**Created:** [May 18, 2008, 6:37am UTC](https://forum.kirupa.com/t/loader-question/260653 "2008-05-18T06:37:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [May 18, 2008, 6:37am UTC](https://forum.kirupa.com/t/loader-question/260653/1 "2008-05-18T06:37:02Z")

</div>

in AS2.0, when I load a swf into a MovieClip, that movieclip becomes the “stage” of the swf. I could then easily position and access my swf.  
How do I do the same in AS3?

and oh, my loaded swf has a liquid layout, and I want the layout to adapt to the size of the Loader object, not the main stage. is that possible?

---

<div class="post-metadata">

**Author:** ![Exodar](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@Exodar](https://forum.kirupa.com/u/Exodar)\
**Post date:** [May 18, 2008, 2:14pm UTC](https://forum.kirupa.com/t/loader-question/260653/2 "2008-05-18T14:14:08Z")

</div>

[http://www.kirupa.com/forum/showthread.php?t=298200](http://www.kirupa.com/forum/showthread.php?t=298200)

from there, you can position your swf, scale it,…etc.  
is this what you were looking for?

---

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [May 18, 2008, 4:42pm UTC](https://forum.kirupa.com/t/loader-question/260653/3 "2008-05-18T16:42:37Z")

</div>

thanks. what i’m actually trying to do is assign the Loader object to be the swf’s stage. is that possible?  
and how do I access the movieclips, etc in my loaded swf?

---

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [May 18, 2008, 7:47pm UTC](https://forum.kirupa.com/t/loader-question/260653/4 "2008-05-18T19:47:41Z")

</div>

1 - Impossible, stage can be only one. Maybe u need just root.  
2 - through loader.content

---

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [May 19, 2008, 3:02am UTC](https://forum.kirupa.com/t/loader-question/260653/5 "2008-05-19T03:02:36Z")

</div>

thanks Felixz  
my loaded swf is being dynamically resized using the stage.stageWidth and stage.stageHeight variables when the stage is resized. is there a way to make root == stage? so that in my main movie, my loaded swf wont occupy the whole thing, only a small portion, the same size as my Loader. :book:

---

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [May 19, 2008, 7:27pm UTC](https://forum.kirupa.com/t/loader-question/260653/6 "2008-05-19T19:27:23Z")

</div>

Use UILoader Class
