I am using flex 3.5 sdk. I want to bind an array collection to a form. The structure of array collection is like this.
MyClass :
var value : String;
var arr : ArrayCollection;
Each element in arr above is an object of MySecondClass
MySecondClass :
var val1 : String;
var val2 : String;
var val3 : String;
I want to bind array collection of MyClass objects (two-way) to a form which has a table and another table inside this table.
How can I accomplish that ?
You can try set the var in MySecondClass to binable.
public class MySecondClass {
....
[bindable]
public var1:String;
[bindable]
public var2:String;
[bindable]
public var3:String;
}
If you change the value of the object, the cell associated with this data should be change.
//PS
Answer after more input from questioner.
You can add the
<mx:Binding destination="checkbox.selected" source="data.value"/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.