You can initialize any class in BXML. If you want to initialize instances of a component subclass, just use an element representing that class instead of the base component class; e.g.:
<foo:MyPushButton buttonData="My Button"> vs. <MyPushButton buttonData="Button"/> Note that, in this example, foo refers your custom component's package, e.g. com.foo. On Jun 16, 2010, at 10:15 AM, aappddeevv wrote: > > Is it possible to initialize my component subclass using bxml or can I only > read objects from bxml as if they were subobjects? > > My use case is where I want to push as much “static” configuration into bxml > as possible for my component and greatly reduce the need for me to bind or > wire children myself in my subclass. Clients of my component would be > completely unaware of how I initialize my object behind the scenes. I was > authoring a few components and found that I was writing a bunch of component > initialization code that look the same each time. > > I think the answer is no but I wanted to check the group.
