5 Replies Latest reply on Jan 25, 2012 1:42 AM by hferreira.80@gmail.com

    Application loading  time optimization

    Siva.S Level 1

      Hi,

       

       

      I have a pretty big application in flex, its loading time is more than 1 minute.

       

       

      The swf size now is 1.6MB.

       

       

      I have tried breaking the swf into seperate modules, but that didnt improve the performance and have also tried using RSL and referred images at run time didnt work.

       

       

      Please let me know a solution to optimize Load time other than doing MVC.

        • 1. Re: Application loading  time optimization
          Flex harUI Adobe Employee

          Use the profiler to see what is taking all that time.

          • 2. Re: Application loading  time optimization
            Siva.S Level 1

            Hi

             

                 Thanks for your reply.

             

            I have tried to use profiler but it shows error as "Profiling can only be performed on the debug version of an application".

             

            Please help me

             

            Thanks in advance

            Siva S

            • 3. Re: Application loading  time optimization
              Flex harUI Adobe Employee

              Try setting breakpoints and see if you can debug.  You might have set –debug=false somewhere

              • 4. Re: Application loading  time optimization
                teufteuf22 Level 1

                I an having the same problem "Profiling can only be performed on the debug version of an application".

                The application is compiled with '-debug'.

                 

                I am not sure if this is related, but in the Flex Builder console, a message appears:

                 

                java.lang.IllegalArgumentException: symbol 366 not defined

                    at flash.swf.Dictionary.getTag(Dictionary.java:172)

                    at flash.swf.TagDecoder.decodeSymbolClass(TagDecoder.java:433)

                    at flash.swf.TagDecoder.decodeTag(TagDecoder.java:352)

                    at flash.swf.TagDecoder.decodeTags(TagDecoder.java:170)

                    at flash.swf.TagDecoder.parse(TagDecoder.java:119)

                    at com.adobe.flash.profiler.internal.PlayerSession.swf(PlayerSession.java:570)

                    at com.adobe.flash.profiler.internal.ProtocolHandler.readSwf(ProtocolHandler.java:353)

                    at com.adobe.flash.profiler.internal.ProtocolHandler.process(ProtocolHandler.java:114)

                    at com.adobe.flash.profiler.internal.PlayerSession.run(PlayerSession.java:383)

                    at java.lang.Thread.run(Unknown Source)

                 

                My version of Flex Builder is 3.02. The application is compiled (somewhere else) with Flex 4.1,

                could this be the problem ?

                • 5. Re: Application loading  time optimization
                  Level 1

                  When "Network Monitor" was release with Flash Builder, by default this behaviour happens and was fixed later with a Flash Builder update so if its your case, just go to the Network Monitor, disable it and rebuild.