0
votes

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 ?

1
You means to edit the table cell and the data in the array also changed? PS. You are using datagrid? - WaiLam
I m using a repeater and a tilelist - Prabhat

1 Answers

0
votes

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.

//P.S.

Answer after more input from questioner.

You can add the

<mx:Binding destination="checkbox.selected" source="data.value"/>