I want to place 3 or 4 text fields in a line. Each text field having some text. And I Changed the font size of text in textfields dynamically.
I assign x value for each textfield as follows:
let us consider txt0,txt1,txt2 and tx3 fields are there...
txt0.x = 0;
txt1.x = txt0.x + txt0.textWidth + 5;
txt2.x = txt1.x + txt1.textWidth + 5;
..... like that
I placed these textfields in a moveiclip in one line.
But the problem is, When I change the font size,If any textfield having two words, it display first word completely but second word is displayed as half.
Suppose if "Soup song..." is a text in txt0. It is displayed as "Soup so"
Please help me if anyone know. And I think this is width of textfield problem. If it is please mention, how to solve it?
Now I got another problem...
I succeeded to arrange above type of textfields with many different lines. Each line represents a movieclip which is having text fields in it. Now I have to arrange each movieclip in a center of the stage. How can I do it? It may be some simple logic I think...
North America
Europe, Middle East and Africa
Asia Pacific