Hello !
I've got "TypeError: Error #1034: Type Coersion failed: cannot convert [EMAIL PROTECTED] to flash.display.DisplayObject" in Flex 2.0.
I have the error using mx.controls.DataGrid in the following way:
var dataProvider:Array = new Array();
var obj:Object = new Object();
obj.roleName = "Profile 1";
dataProvider[0] = obj;
obj = new Object();
obj.roleName = "Profile 2";
dataProvider[1] = obj;
var column:DataGridColumn = new DataGridColumn();
column.columnName = "roleName";
column.headerText = "Avaible Profiles";
avaibleProfilesColumns[0] = column;
...
if (dataProvider != null && dataProvider.length > 0) {
for (var i:int=0;i<dataProvider.length;i++){
dataGrid.addChild(dataProvider[i]);
}
}
My "dataGrid" has all settings to handle data properly and it's shown all data, but it always produces the error above too.
Any idea to workaround this situation ? Has anybody faced it ?
Thanks in advance !
Michel.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

