Friday, March 26, 2010

autoSize and x value

anybody have a clue where to find the x coordinate on a textField with autoSize = ''right''?

1. Create 2 textfields on the stage with different words aligned above one another inside a given MC. Set one textField to autoSize = ''left'' and the other to autoSize = ''right''

2. Put them at the same x coordinate and they will be at visibly different x places even though they both trace the same x.

Anybody know why or how to accurately control it? Makes me wanna pull out my eyelashes...

Have a nice day,

B

autoSize and x value

are you checking the x properties AFTER text is assigned AND autoSize is assigned?

autoSize and x value

Yes.

I am returning a textField from a separate function altogether.

ex:

var tf1:TextField;

var tf2:TextField;

tf = addTextField(0, 0, 0, fieldH, dropDownArr[j], fmt, ''left'', fieldBrdr, fieldBG);

tf2 = addTextField(0, 0, 0, fieldH, dropDownArr[j], fmt, ''right'', fieldBrdr, fieldBG);

you're welcome.

No comments:

Post a Comment