| Ultrashock Forums
• Problems with Tab in text boxes |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
|
2008-09-13
#2 |
||
|
Can we see the code?
|
|
|
|
2008-09-13
#3 |
||
|
_root.contactFormText.createTextField("name_txt", 1, 0, 0, 400, 25); _root.contactFormText.name_txt.type = "input"; _root.contactFormText.name_txt.multiline = false; _root.contactFormText.name_txt.maxChars = 40; var name_fmt:TextFormat = new TextFormat(); name_fmt.color = 0x666666; name_fmt.font = "Trebuchet MS"; //my_fmt.bold = true; name_fmt.size = 16; _root.contactFormText.createTextField("subject_txt", 2, 0, 30, 400, 25); _root.contactFormText.subject_txt.type = "input"; _root.contactFormText.subject_txt.multiline = false; _root.contactFormText.subject_txt.maxChars = 40; _root.contactFormText.createTextField("email_txt", 3, 0, 60, 400, 140); _root.contactFormText.email_txt.type = "input"; _root.contactFormText.email_txt.multiline = true; _root.contactFormText.email_txt.wordWrap = true; _root.contactFormText.email_txt.maxChars = 300; _root.contactFormText.createTextField("error_txt", 4, 0, 200, 400, 25); _root.contactFormText.error_txt_txt.type = "dynamic"; _root.contactFormText.error_txt_txt.multiline = false; _root.contactFormText.error_txt_txt.maxChars = 50; var error_fmt:TextFormat = new TextFormat(); error_fmt.color = 0xff0000; error_fmt.font = "Trebuchet MS"; //my_fmt.bold = true; error_fmt.size = 12; _root.contactFormText.error_txt.setTextFormat(error_fmt); _root.contactFormText.name_txt.text = contentXml.firstChild.childNodes[7].childNodes[2].firstChild.firstChild.nodeValue; _root.contactFormText.name_txt.setTextFormat(name_fmt); _root.contactFormText.subject_txt.text = contentXml.firstChild.childNodes[7].childNodes[2].childNodes[1].firstChild.nodeValue; _root.contactFormText.subject_txt.setTextFormat(name_fmt); _root.contactFormText.email_txt.text = contentXml.firstChild.childNodes[7].childNodes[2].childNodes[2].firstChild.nodeValue; _root.contactFormText.email_txt.setTextFormat(name_fmt); |
|
|
2008-09-13
#4 |
||
|
With only this code it's working perfectly.
|
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|



3 comments
| 254 views


Linear Mode