0 Replies Latest reply on Jun 10, 2011 3:46 AM by Ivy2011_JER

    Container-rendering-done event?

    Ivy2011_JER

      Hi all,

       

      I'm initializing a custom container (extends SkinnableContainer)  and add it as an element to the main container.

      At this point, the container is empty and without any style properties. Neither is a skin defined. Only it's width and height are set.

       

      At a certain point the container's custom method "draw()" is called, which `fills` the container (with some other containers, images, labels, etc.).

      This rendering takes a while, let's say 300 ms. Since the container is already a vissible element, the user sees this rendering going on, which looks quite ugly.

       

      Is there a way I can, let's say, hide the container (maybe set it's alpha to zero, or visible to false), render the container's elements ( = filling it with the draw() function), and once the rendering is done (this is the event I need to use, but I'm not sure if it exsists) I set the visibility back to 1/true?

       

      Thanks in advance for your help.