# How do I add scrollpane component using as3?

**URL:** <https://forum.kirupa.com/t/how-do-i-add-scrollpane-component-using-as3/274004>\
**Category:** flash\
**Created:** [October 23, 2008, 4:34pm UTC](https://forum.kirupa.com/t/how-do-i-add-scrollpane-component-using-as3/274004 "2008-10-23T16:34:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wuzzi2ya](https://avatars.discourse-cdn.com/v4/letter/w/e79b87/32.png) [@wuzzi2ya](https://forum.kirupa.com/u/wuzzi2ya)\
**Post date:** [October 23, 2008, 4:34pm UTC](https://forum.kirupa.com/t/how-do-i-add-scrollpane-component-using-as3/274004/1 "2008-10-23T16:34:20Z")

</div>

I need to add a scrollpane component to the stage, yet I need to do it through as3 as it will be removed later in the movie. Tried addChild(“instanceNameOfScrollpane”); to no avail… Maybe someone can give a better example of how to add a scrollable pdf (image) to the stage with as3. The above works if I can just add it with code ionstaed of dragging it to the stage at a keyframe… Thanks for any help and or direction…
