Hi All,
… most of you folks probably know what im gonna ask …
[short]
when you animate text or display object with filter applied to it, especcially for long duration over small distances, the animation is not PERFECTLY smooth. Same for Bitmaps.
[detail]
example1
- animating position of textfield with
textfield.antiAliasType = AntiAliasType.NORMAL; // (antialias for animation)
Looks great. After applying Glow filter (or any other), snaps to next closest pixel during animation.
example2
-animating position of Bitmap image. Snaps to closest pixel.
example3
-animating any vector shape. Perfectly smooth animation.
[solutions tried - didnt work]
For me this did not work to get smooth animation:
- changing every possible property of TextField with filter applied
- TextField.gridFitType = GridFitType.SUBPIXEL
- Bitmap.smoothing = true
- .snapToPixels = false
- .cacheAsBitmap = false
- Bitmap.scaleX = Bitmap.scaleY = .99
- etc.
[kind of worked]
- destroy Bitmap (but ruins purpose)
[the why]
I understand that Flash, when it applies filter to display object, creates Bitmap version of that object. So event though i’m currently trying to fix textfield animation, it’s basically problem with animating Bitmaps. I found LOTS of posts regarding this issue, but none helped me fix this so far.
[question]
How can i fix this issue so that the transitions are PERFECTLY smooth (objects do not snap to pixels (but subpixels)) ?