We help IT Professionals succeed at work.
Get Started

How to Loop through over 100 form fields using action script

blahblahdiva
blahblahdiva asked
on
313 Views
Last Modified: 2013-11-11
I have about 100 form fields on a flash form. I want to process the information in the form fields by looping through the form fields and capturing the names and values into array. The fields were created manually and I want to process the data dynamically.

There are a mixture of text boxes, check boxes, radio buttons and combo boxes with field names that have a prefix of txt, chk, rbn and cmb respectfully. I plan on checking the first 3 characters of the field name to determine the type of field.

The Goal: No matter how many fields get added I never have to touch my code again.

How can i accomplish this?

 I am using ActionScript 2.0 Thanks
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 14 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE