Here is the part of code I am using to resize the textfield (and other elements).
/******SET POSITION**********/
function setPosition():void
{
//Position appBG
appBG.height = stage.stageHeight;
appBG.width = appBG.height;
//Fit the appTXT in middle of screen (AppTXT is a MovieClip contains sourceText - RTLTextField)
appTXT.sourceText.width = stage.stageWidth * 0.9;
appTXT.sourceText.x = stage.stageWidth * 0.05;
appTXT.sourceText.y = stage.stageHeight * 0.1;
//Fit the maskText layer on top of text;
maskText.width = appTXT.sourceText.width;
maskText.height = stage.stageHeight * 0.8;
maskText.x = stage.stageWidth * 0.05;
maskText.y = stage.stageHeight * 0.1;
//Set buttons in their proper position
...
if (stage.stageWidth > stage.stageHeight)
{
appBG.width = stage.stageWidth;
appBG.height = appBG.width;
}
appBG.x = stage.stageWidth / 2;
appBG.y = stage.stageHeight / 2;
}
Everything works fine, but when I install the apk on my Google nexus (800x1280), the font size looks VERY SMALL and I can hardly read it!
If I increase the Font size pt (Red Arrow in above PrntScr) to 40. then it reads perfect on phones with 800x1280 screen size. Ok? But then any OTHER smaller screen cell phones will see the font TOO BIG!
So I need to set the Font size pt by CODE based on a percent of stageWidth to could solve this. thx.
setting width/height is no help. use scaleX and scaleY like i suggested.