468,773 Members | 2,336 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,773 developers. It's quick & easy.

Textfield in array help

3
I have a button that saves a users input, and every time that the user presses this save button it sends the input text into a textfield. i already have an array setup with my all my textfields, but it saves one user input to all my textfield

Here is my array code, and input to text code

Expand|Select|Wrap|Line Numbers
  1. public function ctext(): void {
  2.         trace("view is still ", view.visible)
  3.  
  4.         var aTEXT: Array = new Array();
  5.         var nTEXT: Number = 10;
  6.  
  7.         for (var i: Number = 0; i < nTEXT; i++) {
  8.             var newText: tbox = new tbox()
  9.  
  10.             newText.x = view.gg.x + 450;
  11.             newText.y = 88 + i * newText.height + i * 3.8;
  12.             aTEXT.push(newText);
  13.             addChildAt(newText, 8);
  14.             trace(" view", view.x);
  15.             trace(newText.x);
  16.             trace( "this is atext",aTEXT[1]);
  17.  
  18.  
  19.     // this is where the input text is sent to my array of textfields
  20.  
  21.             newText.cn.text = ps1.CN.text, "";
  22.             trace(TEXT.cn.text);
  23.             newText.pn.text = ps1.PN.text, "";
  24.             newText.ad.text = ps1.Ad.text, "";
  25.             newText.ot.text = ps1.OT.text, "";
  26.  
  27.         }
  28.  
  29.     }
What I need help in, is how can I get it to save in one textfield box at a time, and so on?

thank you
Oct 24 '14 #1
1 5006
congay
3
finally, there is no one to help me and I have done, you look at the web gia re, it was wonderful, I had made it.
Jan 19 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by JackM | last post: by
5 posts views Thread by ali | last post: by
1 post views Thread by aemazing | last post: by
1 post views Thread by aemazing | last post: by
5 posts views Thread by ritchie | last post: by
3 posts views Thread by clawton | last post: by
3 posts views Thread by kurrent | last post: by
5 posts views Thread by Stephen3776 | last post: by
3 posts views Thread by Damodhar | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.