473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 6108
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

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

Similar topics

2
by: JackM | last post by:
Let me attempt to explain my problem. I have a crude php script that takes a text list of songs that was generated by an mp3 list program and translates each entry into the form where they can be...
5
by: ali | last post by:
Hi, I'm trying to understand the reason for different output on the following codes Code1: #include <iostream.h> int main()
1
by: aemazing | last post by:
hello, im new to the forum and i wanted to help with my c++ program. the teacher wants us to design a progrm that would keep track of airplanes awaitin landing at an airport. the program will...
1
by: aemazing | last post by:
i've been tryin to do the following - -Add a new flight number to the end of the queue (got it done) -LAnd the plane at the front of the queue - problems wit it- -display the queue - got it done...
5
by: ritchie | last post by:
Hi, I am writing to ask if anyone can see why my array is not being sorted correctly? It's an array of 4 elements(ints 1,2,3,4) but after calling the selection sort it comes back sorted as...
3
by: clawton | last post by:
Hi All - I've got a 3rd party COM object that returns an array of bytes that are a TIFF image. After adding the reference to the com object to my solution the C# signature for the method is...
3
by: kurrent | last post by:
i'm still new to php and programming and was hoping to get some help on a few questions i haven't had success in answering myself. I successfully created my first very simple script to accomplish a...
5
by: Stephen3776 | last post by:
I am doing an inventory control progam and trying to output a multiple array, I am getting an illegal conversion error java.lang.double !d. Can somebody tell me what I am doing wrong or if there is...
1
by: comedydave | last post by:
Hi guys, I'm new to ASP and need some array help. I need to have a shopping cart. When you visit the site it creates a session and an array. When you click add to basket it adds the item ID to...
3
by: Damodhar | last post by:
HI any one help me to solve the solution one array having the values like $array1 = array(1,2,3,4); $array2 = array(A,B,C,D);
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.