Flex component preloader

[LEFT]Hi all,

I was wondering if anyone knew if it was possible to have a preloader on a Flex component?

I have a custom preloader on my app but think my app loads too quick to run it?! However certain components, mainly a datagrid with a large dataset, takes a few seconds to load extra to load after the app loads!

I was wondering if t was possible to but a preloader on components or is it only possible on the application!? It it’s only possible on the aplication does anyone know how I get everything to pre-initialize so that it takes longer for the app to load but once it’s loaded, the entire app is loaded?!

Thanks a mil inadvance for any help,
Derm[/LEFT]

I don’t think that can be done. Preloaders are tied to a “loader” that has a contentLoaderInfo who dispatches events. Flex components don’t dispatch loading events.

It seems to me that you may have build your Flex component not as effeciently as can be done. I’ve worked with apps that render up to a 1000 items in a single datagrid. If built properly, you shouldn’t need any preloaders inside the app.

Did you:

(1) Extend UIComponent?
Using canvas or panel to base a datagrid will sow you waaaaaaay down. Generally itemRenders should also include 3 or so pieces of info each. If you need more, then your data grid will be difficult to read. Id suggest having a “more info” tab that will allow you to tunnel into the obejct more. Very similar to the flexGrocer app from the Flex 3 training from the source.

(2) How is your dat grid rendering the items. I can’t remember jsut now, but there is an option to only render what is currently being displayed. If you are having it all render as soon as fired, that will kill your speed as well.