you can refer to properties of Object
s in a similar way to how you refer to entries in an Array
. EG:
var propName:String = "SelectAgreement";//the property to access
trace(objRow[propName]);//will trace the property value
So if you have a combo box with which lists these property names literally:
trace(objRow[comboBoxWithPropNames.selectedItem]);