I need to understand Flex process flow. For example, a column in a 
dataGrid gets a custom renderer.
var codeDestinationRenderer:IFactory = new ClassFactory
(hourColumnRendererCanvas);
// next line will take some time:
ClassFactory(codeDestinationRenderer).properties =
{trainId:prop.train_id, highlightCurrentHour:bBackgroundColor, 
xmlModelData:xmlModelData};
trainSymbolColumn.itemRenderer = codeDestinationRenderer;
// problem line
trainSymbolColumn.width 
= "value_will_be_defined_in_codeDestinationRenderer";
But "value_will_be_defined_in_codeDestinationRenderer" is not 
avaialble yet because of some processing that takes place in the 
renderer.
So, in general, any Flex assignment operation supposed to be aware of 
data or any other kind of processing that is taking time and an 
assignment has to wait for it. I would really want to know what other 
developers do about it.

Thanks alot for any help.



Reply via email to