marmite Posted August 11, 2009 Share Posted August 11, 2009 :'( I'm going mad, if not there already! All I want to do is format my dataGrid so that headers align centrally, and data in the cells align right (for numbers) and centre (for text). I would also like to format numbers >1000 with a thousand comma separator... I'm using AS3 in CS4 with deadline approaching. Is this what I have to do: 1) Set up a .as file, and call it MyCellRenderer.as 2) Put a package{} in this .as file, and enter a Class and Function called MyCellRenderer and MyCellRenderer() respectively 3) Put a movieClip in my .fla library and name it MyCellRenderer with link to class MyCellRenderer 4) Do I also reference the .as file in the Class line under Properties at the stage level in my .fla? This seems a lot of effort to align some text! And it doesn't work! I get error #2007 "Parameter child must be non-null" from this line in my .fla code: myDataGridColumn.cellRenderer = "MyCellRenderer" Going insane Emma Quote Link to comment https://forums.phpfreaks.com/topic/169790-datagrid-cell-and-header-formatting-pls-help/ Share on other sites More sharing options...
marmite Posted August 11, 2009 Author Share Posted August 11, 2009 PS. Sorry - this is in Actionscript 3 and I know I should use Flash forums but this is the one forum that always helped! Quote Link to comment https://forums.phpfreaks.com/topic/169790-datagrid-cell-and-header-formatting-pls-help/#findComment-895743 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.