Flash Tutorial: Introduction to Arrays

May 16, 2008 | Author: Noah Omamalin | Filed under: Action Scripts, Basics

There are different types of data containers in ActionScript, the most known type is variables. Arrays are just like variables; they are data containers, while you can store a single date of any type in a variable name, arrays prove to be more complex than variables in that they could be used to store more than one value of any date type that can be accessed and modified independently. Arrays are in essence ‘lists’ of items.

Arrays help make our content more organised and make logical sense to our programs by gathering items of the same type under a single category. They are widely used in so many programming languages and they are involved in all types of projects starting from naming days when creating calendar and all the way to gathering enemy ship data in a shooting game.

This tutorial will hold a basic introduction on three main points regarding arrays: (1) the creation of arrays, (2) accessing arrays, and finally (3) modifying arrays. This tutorial does not claim to tell you everything about arrays, but it will give you the required knowledge for you to start your own exploration on arrays in ActionScript.

Read the Tutorial: Introduction to Arrays

xygoxen

No comments yet.

feel free to leave a comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs are automatically generated. Off-topic or inappropriate comments will be edited or deleted. Email addresses will never be published. Keep it PG-13 people!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

All fields marked with " * " are required.

Recent Photos