I am creating a Datagrid dynamically in AS3. In MXML it is valid to write:
mx:DataGridColumn dataField="abc" id="testColumn"
in AS3 however, I can not use the property “id”, it is not found. Any ideas?
var dgc : DataGridColumn = new DataGridColumn();
dgc.id = "testColumn"; (NOT WORKING)
Thanks,
martin
The id is not a real property, but only a way to define the variable name in mxml. Therefore in your case the ID is “dgc”.
What are you trying to achieve, by the way?