Yes, Carlos, there could be bugs in Binding or anywhere in Royale. Debug into it and see what is going on.
Binding works pretty much the same way as it did in Flex. The property being watched must have an initial value or dispatch an event when that value changes. Metadata indicates which events to listen for. Sometimes the event metadata is missing or wrong, or the expression isn't typed correctly (this one looks ok) and the compiler generates a warning saying that changes to some property will not be detected. Sometimes, the change event isn't fired. Binding in Flex was much slower and heavier because it was more redundant. It tried several times at startup to evaluate all binding expressions. In Royale, we are trying to find many fewer points in the lifecycle (hopefully only one) to evaluate initial values in binding expressions. In theory, all changes after that point should generate a change event. In ItemRenderers, that point is after the data property is set. In Containers, I think it is done on initBindings. Order of declaration could affect order of evaluation. But then a change event "should" fire as expressions get evaluated. HTH, -Alex On 9/19/18, 9:13 AM, "Carlos Rovira" <[email protected]> wrote: Hi, this example work if I but this label <j:Label text="selectedItem: {(cmb2.selectedItem as IconListVO).label}"/> in the current position (below the HGroup that holds the ComboBox) If I put the Label before the HGroup the binding is undefined. This seems a bug in the binding system, and seems to be related to order of declaration. Or I could be missing something here? Thanks! Carlos El mié., 19 sept. 2018 a las 17:24, <[email protected]> escribió: > This is an automated email from the ASF dual-hosted git repository. > > carlosrovira pushed a commit to branch develop > in repository https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.apache.org%2Frepos%2Fasf%2Froyale-asjs.git&data=02%7C01%7Caharui%40adobe.com%7C59f077e8f1d742126f3d08d61e4ae141%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636729704285897246&sdata=7H40Vgub%2FUpBf2QBj5v3RNAtxsCOo1LNaCtFv1D1lys%3D&reserved=0 > > > The following commit(s) were added to refs/heads/develop by this push: > new 1c7843b ComboBox selectedItem example > 1c7843b is described below > > commit 1c7843b524de55e8cb6e1c0d1b7fa142f78a639e > Author: Carlos Rovira <[email protected]> > AuthorDate: Wed Sep 19 17:24:23 2018 +0200 > > ComboBox selectedItem example > --- > .../src/main/royale/ComboBoxPlayGround.mxml | 21 > ++++++++++++++++++--- > 1 file changed, 18 insertions(+), 3 deletions(-) > > diff --git > a/examples/royale/JewelExample/src/main/royale/ComboBoxPlayGround.mxml > b/examples/royale/JewelExample/src/main/royale/ComboBoxPlayGround.mxml > index 614d268..d8930a3 100644 > --- a/examples/royale/JewelExample/src/main/royale/ComboBoxPlayGround.mxml > +++ b/examples/royale/JewelExample/src/main/royale/ComboBoxPlayGround.mxml > @@ -25,6 +25,8 @@ limitations under the License. > > <fx:Script> > <