# Using addChild inside a package / class

**URL:** <https://forum.kirupa.com/t/using-addchild-inside-a-package-class/257655>\
**Category:** flash\
**Created:** [April 16, 2008, 2:32am UTC](https://forum.kirupa.com/t/using-addchild-inside-a-package-class/257655 "2008-04-16T02:32:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibberous](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Post date:** [April 16, 2008, 2:32am UTC](https://forum.kirupa.com/t/using-addchild-inside-a-package-class/257655/1 "2008-04-16T02:32:07Z")

</div>

Hello Everyone, I am trying to do my first big project in AS3 and am having some trouble.

I have a symbol, Frame. I want a class to manage my frames, so I made one, called FrameManager. I want FrameManager to be able to add frames to the stage, but it doesn’t seem to be able to access it.

package {  
import flash.display.MovieClip;

```
public class FrameManager {
    function FrameManager(){
        var myFrame:Frame = new Frame();
        addChild(myFrame); // Doesn't work, undefined
    }
}

```

}

Am I able to do this? I could have FrameManager extend something, add it to the stage, then add children to it, but I’d rather just add it to the stage.
