# AS3: addChild from an AS file

**URL:** <https://forum.kirupa.com/t/as3-addchild-from-an-as-file/248447>\
**Category:** flash\
**Created:** [January 8, 2008, 9:45am UTC](https://forum.kirupa.com/t/as3-addchild-from-an-as-file/248447 "2008-01-08T09:45:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![affirmallchance](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@affirmallchance](https://forum.kirupa.com/u/affirmallchance)\
**Post date:** [January 8, 2008, 9:45am UTC](https://forum.kirupa.com/t/as3-addchild-from-an-as-file/248447/1 "2008-01-08T09:45:26Z")

</div>

Hello,

I have a fla file with a MovieClip named Billy (class: Billy, Base Class: flash.display.MovieClip) linked to Billy.as.

I am trying to get .as file to add an instance of the MovieClip Billy onto the stage with no luck. If anybody can help me here, Thank You! I am not getting any error messages, just a blank swf file…

this is the code in Billy.as. The fla file is blank.

package  
{  
import flash.display.MovieClip;  
import Billy;

public class Billy extends MovieClip  
{  
private var \_billy:Billy;

public function Billy()  
{  
\_billy = new Billy();  
addChild(\_billy);  
}  
}  
}
