I’ve encountered a problem with MXML initialization of components that have a 
model defined in MXML beads. Suppose I have the following MXML:

<MyComp attName=”val1”>
  <beads><CompModel></beads>
</MyComp>


And the follow as3:

class MyComp extends UIBase {
      public function set attName(value:*):void
             {
            model.attName = value;
}
}

model will be initialized before CompModel is added to beads so CompModel is 
never added to MyComp.

Is this a bug? Is specifying a model in <beads/> bad practice?

Reply via email to