Flex Preloader sometimes doesn't show until it reaches 100%

I created my own Flex preloader, just like in this example: http://www.gotoandlearn.com/play?id=108

Now that I am implementing this, it seems to work fine on my computer in FireFox and Chrome. I publish it on the server, update my cache and reload the application, and I get my custom preloader.

But on another computer, the screen remains white for a while, and then for a second or so it shows a preloader, but the indicator is at 100%.

So, loading has already occurred before he showed the preloader. Has anyone seen this before, and do you know what are the reasons or how to solve it?

thank

+3
source share
1 answer

In IE, there is a problem with the Flex custom preloader.

See: http://jaapkooiker.nl/blog/2008/02/15/flex-custom-preloader-ie-stagewidth-stageheight-problem-fixed/

To solve this IE problem, a resize eventListener must be declared in the method of the specified preloader. Then a modification has to be done in the Preloader center.

Replace

x = (stageWidth / 2) - (clip.width / 2);
y = (stageHeight / 2) - (clip.height / 2);

WITH

x = (stage.stageWidth / 2) - (clip.width / 2);
y = (stage.stageHeight / 2) - (clip.height / 2);
+2
source

Source: https://habr.com/ru/post/1732970/


All Articles