# MovieClip Class to Load its Symbol to Stage

**URL:** <https://forum.kirupa.com/t/movieclip-class-to-load-its-symbol-to-stage/297437>\
**Category:** flash\
**Created:** [October 2, 2009, 2:35am UTC](https://forum.kirupa.com/t/movieclip-class-to-load-its-symbol-to-stage/297437 "2009-10-02T02:35:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raabi](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Raabi](https://forum.kirupa.com/u/Raabi)\
**Post date:** [October 2, 2009, 2:35am UTC](https://forum.kirupa.com/t/movieclip-class-to-load-its-symbol-to-stage/297437/1 "2009-10-02T02:35:18Z")

</div>

Hello everybody

This is my first post in this forum. I am struggling with one issue as below:

In order to make it very simple, I have simplified the code as below:

```auto
 
Test_btn.addEventListener(MouseEvent.CLICK, TestHandler);
function TestHandler(e:MouseEvent):void
{
   var mc: myMC = new myMC();
}

```

/////////// Class definition ///////////

```auto
 
package 
{
 import flash.display.*;
 import flash.events.*;
 public class myMC extends MovieClip 
 {
      public function myMC() 
  {
      [COLOR=red]parent.addChild(this); // reports error.[/COLOR]
  }
  }
 }
}

```

In this case, parent= NULL error shows up.

_ **My requirement is just to load the MC on to the stage** _. Please help.
