Text Width
- Started
- Last post
- 13 Responses
- Engage_London
Is there an easy way to find out the width of some dynamic text so that it can be made into a button easily?
- fusionpixel0
isnt text._width available?
I thought it was.
- determinedmoth0
strlen ?
Will give you the number of charaters...
- Engage_London0
i need actual pixel width
- determinedmoth0
.......that would involve some math shit no? Beyond me....
- stuff0
this_text.autoSize="left";
trace("resize text box = "+this_text._width);
- stuff0
auto resize the textbox once its been populated with dynamic content then trace the width? Not sure if thats what you mean.
- Engage_London0
myText = "Helllo"
this_text.autoSize=" left";
trace("resize text box = "+this_text._width)myText= "Everybody"
this_text.autoSize=" left";
trace("resize text box = "+this_text._width)SHOULD THAT WORK?
- Engage_London0
hey... it does... just took the space it put in before the 'left' bit
cheers! :)
now... does anyone know how to get univer75 to appear in flash?
- Engage_London0
also will the new flash have kerning capabilities?
- Engage_London0
..for dynamic text fields?
- stuff0
I sure hope so.
+ glad you got it working.
Whats the problem with Univer 75?
- Engage_London0
it hides as univers 45 light with bold clicked! it seems!
- UndoUndo0
import it into yr library as a font and use it from there. (new font on the library menu) it will have an asterix after it (the imported version of the font)