But I cannot set someProp at the design time because someValue isn't available yet.
On Thu, Sep 26, 2013 at 2:09 PM, Gordon Smith <[email protected]> wrote: > MXML does not support constructor parameters. You need to set a property, > as in > > <my:Obj1 someProp="someValue"/> > > Properties get set before children get created. > > - Gordon > > On 9/26/13 11:57 AM, "mark goldin" <[email protected]> wrote: > > >I have an mxml class called Obj1. Somewhere in my code I do: > >var _obj1 = new Obj1(); > > > >What I need is to provide some variable to Obj1 for its initialization. A > >reason for that is because Obj1 has children that need that variable for > >their initialization. > >But because I cannot send a parameter to Obj1's constructor I dont know > >how > >to solve my problem. > >Any idea? > > > >Thanks > >
