Quantcast
Channel: Musings of a 21st Century Renaissance Man » information design
Viewing all articles
Browse latest Browse all 10

Using Arrays to deal with large data sets, sorting and filtering.

$
0
0

We will continue on from our our example last week where we managed to map data values pertaining to “person” objects to visual movieclip properties.

You can download the template files that act as a starting point for this exercise here.

Coding Concepts

Arrays

An array is essentially a list of items.  The items are indexed by numbers starting from zero, so we can refer to the first element of an array like:

myArray[0]

… the second element like:

myArray[1]

… and so forth.

A sound understanding of arrays will help you grasp this week’s example.  I recommend taking a look at some of the following links:

Loops

It is common to loop over all the items in an array to perform the same actions to each item.  A loop is just a code structure that allows us to perform a given statement or statements multiple times (without haveing to write out those statements multiple times).

Take a look at these links that explain how loops work:


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images