# How to access movieclips in libraries of loaded swfs?

**URL:** <https://forum.kirupa.com/t/how-to-access-movieclips-in-libraries-of-loaded-swfs/268846>\
**Category:** flash\
**Created:** [August 19, 2008, 5:40pm UTC](https://forum.kirupa.com/t/how-to-access-movieclips-in-libraries-of-loaded-swfs/268846 "2008-08-19T17:40:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [August 19, 2008, 5:40pm UTC](https://forum.kirupa.com/t/how-to-access-movieclips-in-libraries-of-loaded-swfs/268846/1 "2008-08-19T17:40:10Z")

</div>

I need help figuring out how to properly make a website using 100% classes.

Tell me if this is right, if not what do I do:

- For each swf (about, contact, etc), there should be an individual document class (aboutdocclass.as, contactdocclass.as, etc) which are used to animate and create the content within each of them.

- I should have 1 index.swf which loads in all these other swf’s and handles unloading/loading of them. This swf just acts as a global “manager/boss” of some sort.

Okay and a question: In the INDEXDOCCLASS.as, I loaded HOME.SWF into a movieclip on the stage. However, I can’t figure out how to access movieclips inside HOME.SWF!

For example:

```auto

// index doc class 
var container1:Container = new Container();
addChild(container1);

Preloader.loadAMovie("home.swf", container1);

container1.SOMEMCINSIDEHOMESWF.x = 100; // failed

```

* * *

All in all, I’m brand new to AS3. I need to learn how to program websites properly, and its a little frustrating that I’m not sure what the correct path to go about it is. Any help is appreciated.
