Since the text property of an input field is a string (you can check this
using if(firstName.text instanceof String) Alert("true");) you can use the
Flex String object methods. Try doing firstName.text.substr(0, 1) and
lastName.text.substr(0, 7).

 

Hope this works.

 

Rob

 

_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.HostMySite.com 
  www.teksystems.com/

Reply via email to