header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
shyre
Points:200
Posts:2

12/17/2009 7:24:17 AM

Title: Preloading Multiple Images before preloader stops..


Hi,

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)..




1
Inder
Points: 3010
Posts:0
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.

2
Redbull
Points: 0
Posts:0
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.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+14+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions