> Hi All,
>
> I am wondering if it is possible to read the value of a property to return
> another property value, which name is calculated.
>
> Example: in a datagridcolumn, the labelfunc is a callback that return the
> value to display in the column.
>
> The idea here would be to read the property datafield, then to use that value
> to return the corresponding xmllistcollection member.
> The code could look like this:
>
> public function myLabelFunction(item:Object,
> column:DataGridColumn):String {
> trace("path of the value we would like to display=" +
> column.dataField); // this actually contains "epar_document.id"
> // works....
> return item.epar_document.rev_number;
> // does NOT work
> // instead, could we have something like
> // return item.{column.dataField}
> // or
> // return item[column.datafield]
> }
>
> Does anyone know if this is at possible to do this in AS3 ?
>
> Thanks in advance.
>
> Romain.
>
________________________________________________________________________
This e-mail has been scanned for all known viruses by EMEA.
________________________________________________________________________