Delay rendering or force re-rendering in Flex

Posted by Tereno on Stack Overflow See other posts from Stack Overflow or by Tereno
Published on 2010-03-13T02:19:11Z Indexed on 2010/03/13 2:27 UTC
Read the original article Hit count: 766

Filed under:
|

Hi there,

In my Flex application, using a custom control, I am making a JSON request to grab some data from the server. My rendering depends on this data such as knowing how many boxes to draw. How can I either force the rendering to wait until I've got the data before drawing to screen or have the boxes draw once we receive the data?

I have an event listener for Event.COMPLETE for my JSON request and in there, I call methods that add to the control. I've tried invalidateDisplayList but that doesn't seem to do anything for me?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flex