Flex AS3 - Creating a dynamic property, and then binding a control to it
Posted
by Caleb Cittadino
on Stack Overflow
See other posts from Stack Overflow
or by Caleb Cittadino
Published on 2010-05-05T21:46:00Z
Indexed on
2010/05/05
22:08 UTC
Read the original article
Hit count: 279
I am trying to: 1) create a dynamic property 2) bind that property to a label
This works great for "sealed properties", but for dynamic properties there doesn't appear to be any event triggered. Are dynamic properties implicityly not bindable?
var myObj:MyType = new MyType(); // MyType is dynamic
myObj["myDynamicPropertyName"] = "initialized";
BindingUtils.bindProperty(myLabel, "data", myObj, repeatedLabel.name); // myLabel now displays "initialized"
myObj["myDynamicPropertyName"] = "changed"; // myLabel still displays "initialized", it should say "changed" !!!
© Stack Overflow or respective owner