
Welcome Guest
|
#1
|
|||
|
|||
|
setting length of dynamic textfields
hello all!!
i have two input text fields "first" and "last" names. When "create" button is clicked, i have the input text going into 2 dynamic textfields. What i would like to have happen is the dynamic textfields length to be determined by the amount of text in the input text field. i.e.: input text field : first name : 123456789 Last name : 1234 Dynamic Text Field LENGTH is equal to : First Name = 123456789 (lenght of text field is ONLY 9 characters) Last Name = 1234 (lenght of text field is ONLY 4 characters) Does anyone follow me? Thanks in advance for the help.... |
|
#2
|
||||
|
||||
|
Hi adroitemedia,
This will do it: TextField.autoSize If the value of autosize is "none", the text field behaves normally and does not automatically resize or align to match the text. If the value is "left", the text field expands or contracts its right and bottom sides to fit all contained text. The left and top sides remain at the same positions. If the value of autosize is "center", the text field auto-sizes, but the horizontal center of the text field stays anchored at the text field's original horizontal center position. The bottom side still expands to fit all contained text. If the value of autosize is "right", the text field auto-sizes; but the left and bottom sides expand or contract. The top and right side remain in the same positions. That should work perfectly for you! ![]() let me know. peace. whitenoiseie
__________________
onClipEvent(mouseDown) { trace("If at first you don't succeed"); trace("Keep at it or die trying"); trace("'Cos you ain't gonna get any breaks in life"); trace("So make it happen for you alone, and be selfish ");} ___________________________ |
|
#3
|
|||
|
|||
|
Thank you so very much!
|
|
#4
|
|||
|
|||
|
very cool. Now is there a way to make sure that the last Name dynamic text field gets placed directly behind the first name text filed.. whether the first name is 4 characters os 20 characters?
Thanks again! |
|
#5
|
||||
|
||||
|
I'm sure there are ways to align the two textfields one after the other.
But what I would do probably the easier option: Just use one text field to show both the First Name and Last Name (this can be done by just adding the strings and displaying them that way) Then you'll always end up with the two name together one after the other. ![]() Unless theres a reason for two seperate text fields thats what I'd do! Let me know how you get on. peace whitenoiseie
__________________
onClipEvent(mouseDown) { trace("If at first you don't succeed"); trace("Keep at it or die trying"); trace("'Cos you ain't gonna get any breaks in life"); trace("So make it happen for you alone, and be selfish ");} ___________________________ |
|
#6
|
|||
|
|||
|
yea im sorry, i figured that out, sorry i didnt let you know!!
Thanks for your time and help!! |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Text viewing problems with dynamic textfields on levels | triaz | Flash MX ActionScript |
0 | 01-05-2007 03:55 PM |
| dynamic variables for setting properties | pauls999 | Newbies |
1 | 03-09-2006 11:10 AM |
| dynamic textfields text to html page text help | [PAUL FERRIE] | Server Side | 2 | 10-01-2005 04:53 PM |
| Scrollbar on multple dynamic textfields | pixial | Flash MX 2004 |
1 | 02-08-2004 07:34 PM |
| Setting Dynamic Text in Frame Scripts | zorba990 | Flash MX ActionScript |
4 | 04-28-2003 11:32 PM |




");
