# Componet trouble

**URL:** <https://forum.kirupa.com/t/componet-trouble/92194>\
**Category:** Uncategorized\
**Created:** [October 14, 2003, 11:14am UTC](https://forum.kirupa.com/t/componet-trouble/92194 "2003-10-14T11:14:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maroof\_d](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@maroof\_d](https://forum.kirupa.com/u/maroof_d)\
**Post date:** [October 14, 2003, 11:14am UTC](https://forum.kirupa.com/t/componet-trouble/92194/1 "2003-10-14T11:14:00Z")

</div>

i created a component. i’m creating and attaching movieclips in the constructor.  
when i create a new fla and get that component in library, without taking an instance on stage, if i try to instantiate it through code  
var foo = new FooComponent();  
the constructor is invoked but component is not visible on the stage.  
Please help.  
i’m writing the import statement too ☹
