473,471 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Textfield in array help

3 New Member
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 6145
congay
3 New Member
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.