var rowCount:Number = dg.length;
trace("[AddUserForm] RowCount is " + rowCount);
selectedItemStr = "
for (var i:Number = 0 ; i < rowCount ; i++)
{
var obj:Object = dg.getItemAt(i);
if (obj.checked == "true" || obj.checked == true)
{
selectedItemStr += "
}
}
Code explaination
=============
getItemAt(i)
i is the row index of dataGrid. It start from 0
Return of getItemAt(i) is the Object.
obj = dg.getItemAt(i);
dg is datagrid;
obj is Object
It will return the row from XML of dataProvider. for example
so if we trace obj.projectID; //out put is 1
trace(obj.projectName); //output is Lorem
Category List
- Actionscript 3 (2)
- Digital Painting (1)
- Life style (1)
- Photoshop (1)
- Sencha Touch (1)