Re: [flexcoders] basic code behind question

2009-10-27 Thread eRoom-D
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

[flexcoders] basic code behind question

2009-10-27 Thread Tim Romano
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;