Search  

RESIZE TEXTFIED

HomeForumsHelp NeededResize Textfied
Default-profile jahwise
5 posts
Bought between 1 and 9 items

Hi there,

i got a problem and im stuck… Im loading text from xml file into a dynamic text field…. How do I set the field to have auto-width according to the amount of text being loaded?.... I want a single line text field , but the width has to adjust according to the text loaded….

i need also to place a button just near the end of the textfield, who will move according to the width of the textfield.

Someone can help me to figured out how ???

Ben.

Posted about 1 month ago
67126 SaafiDesign
1582 posts
Exclusive author Item was featured Author was featured Referred at least one person Reviewer Sold between 50 000 and 100 000 dollars Bought between 1 and 9 items
mytextfield.autoSize = true;
mytextfield.text = textStr;
myBtn._x = Math.round(mytextfield._x + mytextfield._width);
Posted about 1 month ago
Default-profile jahwise
5 posts
Bought between 1 and 9 items

thx for answering,

nice code but when im setting mytextfield.htmlText = myShowXML.firstChild.childNodes2.attributes.title2; for exemple it doesn’t work. but when i set to

mytextfield.htmlText =”blablabla”; it works, the button is just next to the end width of the textfield

What i’ve done wrong?

Posted about 1 month ago
Default-profile jahwise
5 posts
Bought between 1 and 9 items

any advice please?

Posted about 1 month ago
65882 theflyingtinman
504 posts
Item was featured Referred at least one person Sold between 100 and 1 000 dollars
What happens if you typecast the XML stuff :
mytextfield.htmlText = String(myShowXML.firstChild.childNodes[2].attributes.title2);
Posted about 1 month ago
Default-profile jahwise
5 posts
Bought between 1 and 9 items

I already try that, but its not working. Im stuck on my project make my vex… thanks again for the repl,y im searching again & again.

Posted about 1 month ago
Default-profile jahwise
5 posts
Bought between 1 and 9 items

i figured out myself !

Thanks For the help !

Posted about 1 month ago