Textfield scaling issue

Thought I’d post about this issue unless anyone else comes across something similar and needs a fix.

On a recent site I worked on (www.sky.com/bintm) i’m scaling the content when the user goes into FullScreen mode to make use of slightly higher res photo assets available.

This knocks the double column text article page out of whack. Essentially scaling a movieclip with a dynamic textfield in it results in a different textHeight and numLines being traced for the same textfield dependent on whether you’re in FullScreen mode or not.

After a bit of hunting I came up with the following fix – setting the gridFitType property of the textfield to GridFitType.SUBPIXEL . I tried GridFitType.PIXEL but that still gave different results dependent on the users screen mode.

Be Sociable, Share!
Tagged with: , ,
Posted in Actionscript

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Posts this month
August 2011
M T W T F S S
« Jul   Nov »
1234567
891011121314
15161718192021
22232425262728
293031  
Archives