# Instantiated symbol not appearing when class path used

**URL:** <https://forum.kirupa.com/t/instantiated-symbol-not-appearing-when-class-path-used/305797>\
**Category:** flash\
**Created:** [March 3, 2010, 4:55pm UTC](https://forum.kirupa.com/t/instantiated-symbol-not-appearing-when-class-path-used/305797 "2010-03-03T16:55:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eb\_dev](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@eb\_dev](https://forum.kirupa.com/u/eb_dev)\
**Post date:** [March 3, 2010, 4:55pm UTC](https://forum.kirupa.com/t/instantiated-symbol-not-appearing-when-class-path-used/305797/1 "2010-03-03T16:55:51Z")

</div>

Hi,

I have a mc in my library called SimpleButton and in the class path for that mc I have the path to my class: com.company.ui.buttons.SimpleButton.

But when I try to instantiate the symbol using the following code, it does not appear on the stage.

```auto

var simpleButton = new SimpleButton();
addChild(simpleButton);

```

The code works fine when the mc class path is just SimpleButton, the symbol is added to the stage. However when I try to use my own class, the base class disappears from the linkage box in the mc properties dialog and the symbol does not appear on the stage.

Here is my SimpleButton class:

```auto

package com.company.ui.buttons
{
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.MouseEvent;

	public class SimpleButton extends MovieClip
	{
		public function SimpleButton()
		{
			// Stop play
			stop();
		}
	}
}

```

Does anyone know why this is?

Thanks,

eb\_dev
