Trying to kickstart in Flashbuilder and use a swc from a previous as3 project and see if the move will eventually lead to a better organized project, since flash has no clue what a project is codewise. However, I got stuck on the addElement method in my first class outside the Main.mxml.
I get this error: -Call to a possibly undefined method addElement
what can the problem be?
package
{
import mx.core.UIComponent;
import flash.display.MovieClip;
public class initApp extends UIComponent
{
public function initApp()
{
startApp();
}
private function startApp():void
{
var container:UIComponent = new UIComponent();
var mcinterface:MovieClip = new airInterface();
container.addChild(mcinterface);
//this.addChild(container);
this.addElement(container);
}
}
}