LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




ReplyREPLY THREAD
 
Thread Tools Display Modes
  #1  
Old 03-19-2003, 02:44 AM
adroitemedia adroitemedia is offline
Registered User
 
Join Date: Jan 2003
Location: Wisconsin
Posts: 46
Rep Power: 0
adroitemedia is on a distinguished road
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....
Reply With Quote
  #2  
Old 03-19-2003, 03:02 AM
whitenoiseie's Avatar
whitenoiseie whitenoiseie is offline
Flash Guru Moderator
 
Join Date: Mar 2003
Posts: 694
Rep Power: 11
whitenoiseie is on a distinguished road
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 ");
}
___________________________
Reply With Quote
  #3  
Old 03-19-2003, 01:22 PM
adroitemedia adroitemedia is offline
Registered User
 
Join Date: Jan 2003
Location: Wisconsin
Posts: 46
Rep Power: 0
adroitemedia is on a distinguished road
Thank you so very much!
Reply With Quote
  #4  
Old 03-19-2003, 02:04 PM
adroitemedia adroitemedia is offline
Registered User
 
Join Date: Jan 2003
Location: Wisconsin
Posts: 46
Rep Power: 0
adroitemedia is on a distinguished road
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!
Reply With Quote
  #5  
Old 03-19-2003, 05:35 PM
whitenoiseie's Avatar
whitenoiseie whitenoiseie is offline
Flash Guru Moderator
 
Join Date: Mar 2003
Posts: 694
Rep Power: 11
whitenoiseie is on a distinguished road
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 ");
}
___________________________
Reply With Quote
  #6  
Old 03-19-2003, 05:51 PM
adroitemedia adroitemedia is offline
Registered User
 
Join Date: Jan 2003
Location: Wisconsin
Posts: 46
Rep Power: 0
adroitemedia is on a distinguished road
yea im sorry, i figured that out, sorry i didnt let you know!!

Thanks for your time and help!!
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 02:53 PM.