That is correct. Code behinds for components cannot take constructor
arguments, there isn't a mechanism to pass them in.
You will want to pass them in and act on them at some other point in the
component lifecycle. Such as CreationComplete, or Initialize.
David Moore
Flash and Flex Developer - h
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;
2 matches
Mail list logo