What does {variable} do in flex

apache-flex, mxml

Solution

That's a binding!, In this case, it means that the text of the label will show the content of "variable", if you change the value of "variable" it will also change the text displayed by the label.

Problem

I have been using { } around variables in MXML without really understanding what they are for. I am now needing to know if I should use it around a variable..what does that do? example: `<mx:label text="{variable}"/>`

Original source