This is the MOST basic of questions, but I can't find it anywhere. I have a movieClip in my main lib. I am loading a class called Main.as from the Flash cs6 IDE. I have an mc in lib called myMC. It's checked to export to actionscript.
But I just can't get this simple code to work.
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Main extends MovieClip
{
public function Main()
{
if (stage)
{
init();
}
}
public function init()
{
addChild(myMC); // Does not work.
}
}
}