It seems a class whose constructor takes arguments cannot be used as the
code-behind class. Is that so? When I try to use this class in the root tag of
my mxml component, there's an error: no default constructor in the base class
TestArgs.
Thanks
package
{
import mx.containers.TitleWindow;
import mx.controls.LinkButton;
public class TestArgs extends TitleWindow
{
public var aLinkButton:LinkButton;
private var _arg1: String;
//public function TestArgs(){}
public function TestArgs(arg1:String)
{
super();
_arg1 = arg1;
}
}
}