associative arrays


show more associative arrays provides you with in-depth training on Developer. Taught by Joey Lott as part of the ActionScript 2.0 Essential Training show less
please wait ...

associative arrays

Now we just talked about arrays. And because we just talked about arrays I want to talk to you about something else that's very closely related. And that's something called an Associative Array. When we use an array object then we're using the Array class. And the Array class gives us the opportunity to order our data using integer indexes. Integers are whole numbers. So, 0, 1, 2, 3, 4, 5, et cetera. Now an Associative Array doesn't necessarily have to be created using the Array class.

In fact, most of the time we're going to create Associative Arrays using the Object class. That's object with a capital O. Object is the base class - sort of the most fundamental class upon which all other classes are based. Typically, we'll use the Object class to create an Associative Array. What an Associative Array does is it helps you to organize your data. Instead of using an integer index, we use a string index.

And we refer to those string indices as keys. An array created using the...

associative arrays
Video duration: 9m 53s 9h 49m Beginner

Viewers:

associative arrays provides you with in-depth training on Developer. Taught by Joey Lott as part of the ActionScript 2.0 Essential Training

Subjects:
Developer Web
Software:
ActionScript
Author:
please wait ...