Why do components take so long to appear on stage?
I have a movie that is a HUGE online form. I am using the v2 Components. On every "page" (external swfs) there is either a ScrollPane component or an Accordion component. Within each of those could be numerous (1 - 15) different components (CheckBoxs, Buttons, ComboBoxes, RadioButtons, etc.) including DataGrids. And to top that off, even some of the DataGrids can have components in them using the CellRenderer class (either ComboBoxes or Cehckboxes). All these components are preloaded in a Shared Library in the root movie and when the external swf is loaded it looks to an XML file to determine what components to use and where to place them.
The problem is, it takes forever and a day (anywhere from 5 - 10 seconds) for the components to appear and while they are loading, the movie "freezes"...including code execution...until the components are drawn to the Stage. Once they are visible to the user, the movie continues to run. So even if I wanted an animation, like a waiting cursor, to animate so the user doesn't think things are broken, I can't have one because it just stops.
Now I can see that the loading of the swf and the parsing of the XML is fast because I am tracing out those steps and components still don't show up long after those traces are complete. I can even see the code execution "freezing" because I am using Remoting and when I don't use components the callback returns are traced very quickly, but when the components are thrown back in, the Remoting callbacks stall until the components appear on Stage.
Now I know that, I am pushing the edge here but the simplicity of using these components is too much to pass up considering how much data I am pushing around.
Anyone, experienced this problem and created a work around or have a solution. These components are not very useful if you can't even make a Flash based web form and not have draw to the stage quickly.