A+    A−    B  
Programming
PHP
JAVA
Flash Tutorials
AddThis Social Bookmark Button

How to Create An Array in Actionscript 2

How to declare and initialize an array

The code belwo will create an array with four items. However, if you run the example below you will find that myFirstArray[4] traces outundefined. This is becuase the indices are zero based and a four item array has a final index of 3.

Top
AddThis Social Bookmark Button