3 Replies Latest reply on Jun 2, 2010 7:12 AM by David_F57

    Can I remove the startup progress bar from a Flex app?

    pk1023

      Hey all,

       

      I have built a few charts for my companies' website: http://www.midwestmarket.org/page/Area+Control+Error

       

      On all of them, I have noticed that there's a delay of 3 or 4 seconds from the time the page loads, a progress bar shows, and then the graph is actually shown.

       

      The charts in question are all Flex 3 builder built, and I am upgrading now to Flash 4 builder. But, still I see the progress bars.

       

      I know that Fusion Charts doesn't have this same startup routine, those charts pop right up as soon as the site is loaded. Now Fusion is of course build to JUST be a chart tool and probably doesn't load as much stuff. But, is it possible to get there with Flash 4 builder?

        • 1. Re: Can I remove the startup progress bar from a Flex app?
          David_F57 Level 5

          hi,

           

          With flashbuilder you first need to load the swf, then it creates the display objects this is what the loadbar is there for, if you have embedded assets then that bar will stay even longer. Once the application creation sequence is complete the displaybar disappears and then your application is displayed.

           

          Now imagine removing that bar, on a slow connection with a 'large' app, the user would be faced with a blank screen for several seconds, not the desired end-user experience we are after.

           

          You can make it more interesting by customising the pre-loader with say a company splash screen which offers a more visually appealling startup

           

          this is a simple example of a custom preloader, source is included

           

          http://flashhub.net/ezflex/testloader/

           

          One quick note with preloaders there is no flex sdk at that point so preloaders have to comply with the immediate requirements of the flashplayer api. So basically on flash components.

           

           

          David.

          1 person found this helpful
          • 2. Re: Can I remove the startup progress bar from a Flex app?
            pk1023 Level 1

            Ahh yes, this makes sense that the first load is the SWF that runs Flash Builder, then the objects that I have created.

             

            So is the trick here with Fusion Charts that they have optimized their Flash SWF down to just doing the chart stuff right up front? Is that how they have that no load time effect?

            • 3. Re: Can I remove the startup progress bar from a Flex app?
              David_F57 Level 5

              hi,

               

              a classic example of swf sizes is say a 30k banner ad re-written in flex and using the sdk, suddenly due to the sdk the swf size becomes closer to 400k, if you use runtime libraries(flashbuilder default when building the flex app) the swf is only 20-50k but the libraries can be over 1mb, You can optimise to some extent by deciding if merging the required parts of the sdk into the build has less overhead than a tiny swf with several runtime libraries. Merge option is available in the projects preferences under compiler options.

               

              David.