greetings,
I’m confused with textfield width and textWidth. I need to know when the text i’m loading via flashvar is bigger than the textbox width in the stage, and then start an action. How can i do that ?
exemple http://www.crossc-mag.com/text.jpg
I’ve used text.lenght but the problem is that character like A & W doesn’t have the same size… Any help ?
Thanks.
- Author was Featured
- Sold between 50 000 and 100 000 dollars
- Author had a Free File of the Month
- Bought between 1 and 9 items
- Exclusive Author
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
Look into TextLineMetrics for detailed text measurement:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextLineMetrics.htmlTean said
Look into TextLineMetrics for detailed text measurement: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextLineMetrics.html
Ok thanks, look like its harder than i expected !
Can you help me with this function on my project ? $$ 
- Author was Featured
- Sold between 50 000 and 100 000 dollars
- Author had a Free File of the Month
- Bought between 1 and 9 items
- Exclusive Author
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
Sure, send me an email through contact form with the details.
- Attended a Community Meetup
- Community Moderator
- Has been a member for 5-6 years
- United Kingdom
- Contributed a Tutorial to a Tuts+ Site
- Won a Competition
- Contributed a Blog Post
- Beta Tester
- Bought between 50 and 99 items
if (textfield.textWidth > textfield.width) doAction();
”.length” is for the number of characters in the textfield… nothing to do with it’s size…
.textWidth is the width of the text in the field
.width is the width of the field
