# addChild() issue

**URL:** <https://forum.kirupa.com/t/addchild-issue/289343>\
**Category:** Uncategorized\
**Created:** [May 29, 2009, 5:10am UTC](https://forum.kirupa.com/t/addchild-issue/289343 "2009-05-29T05:10:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noahdecoco](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@Noahdecoco](https://forum.kirupa.com/u/Noahdecoco)\
**Post date:** [May 29, 2009, 5:10am UTC](https://forum.kirupa.com/t/addchild-issue/289343/1 "2009-05-29T05:10:17Z")

</div>

Hi,

I followed a tutorial on [www.gotoandlearn.com](http://www.gotoandlearn.com), on how to make a scrollbar class…

It works fine, loved it! Makes life easy…

So now I have a symbol in my library, “scrollBar”, and in it’s linkage properties, I’ve linked it to the class… It works fine if I manually drag it to the stage… but, what if I wanted to get it through code? like addChild(scrollBar)… I can’t figure out the pattern to do that… Can someone help please? Pretty please???
