12/17/2009 7:24:17 AM
Preloading Multiple Images before preloader stops..
I have huge images from various urls i need to load them first after the images are completly loaded then only the user should allowed to do anything until and unless he should see loading (ie before preloading)..
12/17/2009 7:54:20 AM
say you have 10 images to preload. You should increment a variable like loadedImages +=1; on each image load complete event and then check if the variable is loadedImages == 10; .When the condition meets it will mean that all the images are loaded and now you can enable the application. By default set Application.application.enabled= false; so the application is disabled initially and set it to true when the condition says images are loaded.
12/17/2009 9:23:13 AM
mask the flex application initially with some component like canvas placing on top with full width and height and show a label inside loading... .Then remove or hide the canvas when all the images are loaded.