or if you're feeling reaaaaaaaaally lazy, you could just set the cursorManager to display the busy cursor until the rendering is done, and then just remove the busy cursor on completetion
depends if you just need something to indicate something is running in the background, or if it actually needs to look smart whilst doing so.
That's not a bad idea. How can I tell when the rendering is complete? I tried to look for different events for AdvancedDataGrid but couldn't find anything that stands out.
if you set preloader on application tag it will stops once the dg loaded, you no need to listen to any event.
if you know the exact time it takes, you could use the setTimeout function, although thats messy.
you could use CallLater
or you could use the creationComplete attribute
there are loadssssss of different ways
I added your Preloader AS class and called the preloader from my application class and recieved an error can the preloader only be used in the Application class.
Start Class ( there is a destPath associated with this and that is why you don't see any other code. A .swf file is loadded):
<?xml version="1.0" encoding="utf-8"?>
ERROR Received and associated function below:
1046: Type was not found or was not a compile-time constant: FlexEvent. FlashPreloader.as SmartDeskRegulatoryFlex/src/com/dstsystems/regulatory/compliance/components/ecompliance/v iew line 45 Flex Problem
private function initComplete_handler ( event:FlexEvent ):void
new Event( Event.COMPLETE ) );
Is it possible to add the Preloader directly to the Component.mxml in question. My complile time issue is corrected but the preloader doesn't seem to work.
xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" backgroundColor="#FFFFFF"
10" paddingTop="10" paddingRight="10" paddingBottom="10"