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 8277193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:37:02+00:00 2026-06-08T08:37:02+00:00

Is there a way to make an array composed of tags, so I can

  • 0

Is there a way to make an array composed of “tags”, so I can refer to them by their “name”?

So usually when I want to refer to a position in my array I would do something like:

MyArray:Array = new Array( ["Marco", 26, "Portugal" ] );
trace(MyArray[2]);
Output: "Portugal"

I want to use an array where the positions have diferent names. So I wanted to be something like:

MyArray:Array = new Array( ["Marco", 26, "Portugal" ] );
trace(MyArray[Country]);
Output: "Portugal"

I’m pretty sure “tag” or “name” of the array isnt the propper term to use, but I don’t know the correct one, so excuse me on that. Its also probably a easy question, but something that I never needed to use untill now. I’m building a “Area” array with positions, heigths and widths of several movieclips on stage, so I could use some simplification of the array to avoid always using numbers.

Thank you.

  • 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-08T08:37:04+00:00Added an answer on June 8, 2026 at 8:37 am

    You can just use the Object class, it is the simplest way to use associative arrays in as3:

    var ob:Object = {
      name: "Marco",
      age: 26,
      country:"Portugal"
    };
    
    trace(ob.country);
    //output: Portugal
    

    I recommend you to check this article on Adobe’s website for further info: ActionScript 3 fundamentals: Associative arrays, maps, and dictionaries

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if there is a way to make an array which would
In Java, is there a way to truncate an array without having to make
Is there a way to make a non-resizeable vector/array of non-reassignable but mutable members?
quick question. Is there any way to make this possible? int array [] =
The user want to buy lets'say 30 items, is there other way than make
Is there a way to make the whole array content and make it a
Is there a way to make Magento return a PHP array of all shipping/billing
Using strtolower() on an array, is there a way to make the output below
Can't work out a way to make an array of buttons in android. This
Is there a way to make a button's background color change from a color

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.