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.
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:
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