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.
Alex kim
Points:0
Posts:0
Answered

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.



flexman
Points: 250
Posts:3
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 ?


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

Alex Kim
Points: 0
Posts:0
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.

flexman
Points: 250
Posts:3
Accepted Answer
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 .

Alex Kim
Points: 0
Posts:0
2/2/2010 12:06:08 PM



Thanks for your prompt reply. I will try it tonight(EST) and let you know.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 6+0 



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