I have tried this code for way too long and am ready to throw in the towel, so I am really hoping one of you can help me:
I have a custom component based on Canvas that I want to accept a series of UIComponents as children based on an array of data sent in. So here is how my code is layed out: 1) I have a set dataProvider() function that accepts an array. If the array is new, it sets it as an internal variable ( _dataprovider ) and calls invalidateProperties() 2) In my commitProperties code, I loop through the array and for each member create an instance of the UIComponent that will represent the data. I also add them as children calling addChild(). I push all instances created into another array (called markers).I then call invalidateDisplaylist() 3) In my updateDisplaylist, I check position the instances held on the markers array. Here is the clincher: I cant see the instances created since their width and height is 0. I want to set their width and height based on their measuredWidth and height. But thats 0. Tracing their initialized status returns false. How do I trigger them to call their measure() function??? PLease dont say call invalidateSize() since I have done that and it doesnt work. I tried calling validateNow() but that seems to hang my computer. help ! -- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --------------------------------------- post your flex tips on http://flextips.corank.com

