Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8778991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:40:00+00:00 2026-06-13T19:40:00+00:00

I have a form in as3 flash with textfields and radio buttons with their

  • 0

I have a form in as3 flash with textfields and radio buttons with their “instance name” all set consecutively such as:
field_1
field_2
field_3
…etc

Is there an easy way in AS3 code to loop over all those fields and get their values in an array? Ideally I’d like a simply loop to get the values (so I can add in a simple popup if a value is missing) and then with the filled array simply post it using URLRequest.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:40:01+00:00Added an answer on June 13, 2026 at 7:40 pm

    It sounds like you want to use a for statement. I’ve also used a multi-dimensional array to store the instance names, and the text that they contain. I like to use the variable _path to define the scope of my code.

    var _path = this;
    var text_ar:Array = new Array(['instance_1',''],['instance_2',''],['instance_3','']);    //instance name, instance text.
    
    for(var i=0; i<ar.length; i++)
    {
         text_ar[i][1] = _path[text_ar[i][0]].text
    }
    
    trace( text_ar[1][1] ); //Traces the text that's entered in instance_1. 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have form with two buttons having same name but different values ,how to
I have form with 4 buttons and Image. For all these controls i have
I have form with few buttons and I want to know what button is
I have form with multiple input type=radio with text next to them. I want
I have form like this: <div class=satu> <input type='text' size='1' maxlength='1' name='score[1][]' id='score[1][]'> </div>
I have form like this: <form method=POST> <p> Nazwa kategorii: <br /> <input name=NazwaKat
I have form object that I set to request in GET request handler in
I have form like this: <input type='text' name='people' id='namepeople'> <input type='hidden' name='idpeople' id='idpeople'> <input
I have form as below. ++++++++++++++++++++++++++++++++++++++++++++++++++ + Id : TextBox + + Name :
I have form with field: name = forms.RegexField(regex=r'\w+$', label=u'Name', required=True) but if I type

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.