2/1/2010 9:06:07 PM
Title:
Developer
I have downloaded your CustomPreloader for flex and implemented in my flex application. It works great, except at the end of the progress, flex file is not loaded. I have to refresh the browser to download the flex file again. This happens when I have a new version of flex application to download from the server first time. Then I have to refresh the browser to download the flex application again and it works then. I am using Flex 2.01 and I have windows XP. Sorry if my question is not clear.
Thanks in advance for your help on this.
2/1/2010 10:25:01 PM
Hi,
I have never faced such problem with custom preloader used from this link.
http://askmeflash.com/article/7/custom-preloader-progress-bar-flex
Please answer the following so that I can look into the code for suspected bug:
1)do you want to say that The progress bar does not disappear after 100% on first attempt?
2) which SDK you are using , 3.2, 3.4 , 4.0 or any lower ?
2/2/2010 12:32:41 AM
I have used this preloader in my applications with flex compiler 3.2 and 4.0 beta . Had no issues. It can be some caching issue of browser . In firefox using refresh button brings fresh content.
2/2/2010 9:50:30 AM
I am using Flex 2.01 (older version). The custom progress bar function fine, but, the acutal flex application swf file is not being displayed when you try download it first time. It just shows blank. You need to refresh the browser and download the flex application again to see the content of the flex application. It happens when you are downloading new version of flex application first time. It might be related to cache problem as mentioned by Redbull. I am using IE8.
2/2/2010 10:05:28 AM
Hi Alex,
In your customPreloader class file navigate to line 95 at
dispatchEvent( new Event( Event.COMPLETE ) );
Add a debug marker and see that this code is executed or note . Actually this is the final event which makes flex application visible. If this line is executed then the rest of the task is of flex application to initialize.
if that code is not executing then try changing the condition to
if(currlen>196){
timer.stop();
dispatchEvent( new Event( Event.COMPLETE ) );
}
Also check by removing preloader to see if using preloader is causing problem?
If still not working then mention your sdk exact version, I will try to recreate it at my end .
2/2/2010 12:06:08 PM
Thanks for your prompt reply. I will try it tonight(EST) and let you know.