5 Replies Latest reply: Jan 25, 2014 1:14 PM by kglad RSS

    flickering animated text

    AMULI Community Member

      Hi there,

       

      Animating disks (orbiting another disk) with labels inside, I observe small variations in the location of the label relative to its parent circle, hence a flickering effect.

       

      I used AntiAliasType.ADVANCED.

       

      And I replaced the original Event.ENTER_FRAME event listener by a TimerEvent.TIMER one. But still flickering.

       

      Any suggestion ? Thanks.

       

      Gil

        • 1. Re: flickering animated text
          kglad CommunityMVP

          embed your font(s).

          • 2. Re: flickering animated text
            AMULI Community Member

            Hi kglad,

             

            I just tried embedding the font. But as I feared, the result is the same, whether using the system font or the one embedded :-(

             

            I suspect it has to do with the fact that the labels jump from pixel rounded coordinates, while the circles are rendered un twix coordinates. With a text created at authoring, there are options Anti-alias for legibility versus Anti-alias for animation. I expected AntiAliasType.ADVANCED to be equivalent to the latter.

             

            But may be seing the problem will help ? The files are there : https://app.box.com/s/y4dez4l7mswcndpuw6q2

             

            Gil

            • 3. Re: flickering animated text
              kglad CommunityMVP

              enable cacheAsBitmap of your disques.

              • 4. Re: flickering animated text
                AMULI Community Member

                Indeed, the circle+label being rasterized, there is no longer micro-motion of the label relative to its parent circle.

                 

                But  some circles are slightly clipped and that's now the whole circle+label that suffer from micro-motion ! Those defects are less annoying than in my first version. Thanks, kglad :-)

                 

                And I am still interested in understanding the reason why those micro-motions. Is it inherent to rounding to pixel values ? I thought the player was computing in twixes (twentieths of pixel).

                 

                Gil

                • 5. Re: flickering animated text
                  kglad CommunityMVP

                  no, the problems aren't from rounding.  they are all performance issues.

                   

                  there are several things you can do to minimize the problem including increasing your frame rate, disabling mouse interactivity with your disques and if that's not possible disabling the mouseChildren property of your disques.