Creating arrays and vectors


show more Creating arrays and vectors provides you with in-depth training on Developer. Taught by Todd Perkins as part of the ActionScript 3.0 in Flash Professional CS5 Essential Training show less
please wait ...

Creating arrays and vectors

When you're working with large amounts of data, it is crucial to stay organized so that data can easily be accessed and utilized. Using arrays and vectors, it is easy to organize large amounts of data. Let's start by looking at an array. Let's say you wanted to load 50 different thumbnail images into a slideshow. Now it'd be nice to have some organized way to store all those image names, right? Well, with an array, you can do that.

To create an array, type var, then a space, then name your array. I usually name my array something plural, so thumbnails, for example. I'd say these represent thumbnail images that you would load into Flash. So thumbnails: and now remember, you're telling Flash what type of data the variable is, and an array is an array. So type capital A and begin to type Array, and you'll see it selected in the code hinting area, and you could just double-click that or press Enter on your keyboard, and Flash will finish it for you.

And then type sp...

Creating arrays and vectors
Video duration: 6m 50s 7h 8m Beginner Updated May 23, 2012

Viewers:

Creating arrays and vectors provides you with in-depth training on Developer. Taught by Todd Perkins as part of the ActionScript 3.0 in Flash Professional CS5 Essential Training

please wait ...