3 Replies Latest reply on Feb 22, 2010 11:45 AM by Flex harUI

    Flash 10 Initializing Problems

    puddytat5000 Level 1

      Recently I have started using flash player 10 instead of 9, and ever since i have been noticing some problems.

       

      My most recent problem means I cant run my app at all.

       

      The initializing message is loaded, and the bar gets to the end, and then nothing happens.

       

      Any ideas what could be causing this?

        • 1. Re: Flash 10 Initializing Problems
          Flex harUI Adobe Employee

          See if you get an applicationComplete event.  If not, put a breakpoint on

          LayoutManager.as:doPhasedInstantiation.  If it keeps getting called then you

          have an invalidation loop where something is always invalid and when it gets

          validated end up getting invalidated again during the validation phases.

           

          It shouldn't be player specific.  It can be something subtle like a

          scrollbar that keeps flipping on and off.

          • 2. Re: Flash 10 Initializing Problems
            puddytat5000 Level 1

            Thanks for the reply. Thats exactly what it was doing.

             

            The problem was with the following code in a datagrid definition:

             

            height="{vbxProd.height - 60}"

             

            I was using this to dynamically set the datagrids height.

             

            The thing is, it had been working fine before and then suddenly it wasnt. I guess I must have added something else to affect this bit of code.

             

            Any explanation as to why this would have caused a problem?

            • 3. Re: Flash 10 Initializing Problems
              Flex harUI Adobe Employee

              If the DataGrid is a child of vbxProd, then when you change the DG's height,

              then vbxProd needs to recalculate its height, which will cause the DG to

              recalculate its height...

               

              It would fail in FP9 as well, but if the computed height did not change the

              height of the vbxProd or the DG then the loop wouldn't happen, so maybe a

              new child was added that is squeezing things