The Adobe Flash Array function enables you to create an empty array, an array with specified length with undefined values for elements or an array with a specific values element.
You can pass either a number (numElements) or a list of elements with one or more different types (element0, element1, element2, …, elementN).
Parameters
numElements - is a positive integer specifying the number of elements in an array. You can either specify numElements or list of elements.
elementN - is one or more parameters, element0 ... , elementN, the values can be of any type. Parameters that accept multiple data types are listed as type Object.
Ex
var myArray:Array = Array();
myArray.push(10);
trace(myArray); //traces 10
myArray[4] = 5;
trace(myArray); //traces 10,undefined,undefined,undefined,5
Adobe Flash Array function
The Adobe Flash Array function enables you to create an empty array, an array with specified length with...
adobe flash array function
Also tagged with one or more of these keywords: adobe flash, array function
Software →
Adobe Flash →
Making games with Adobe FlashStarted by DesGuru, 16 Dec 2013 adobe flash, making games |
|
|
||
Software →
Adobe Flash →
How to recover damaged or corrupt files Adobe FlashStarted by SmartWeb, 07 Nov 2013 adobe flash, corrupt files and 1 more... |
|
|
||
Software →
Adobe Flash →
Adobe Flash optimization techniquesStarted by SmartWeb, 07 Nov 2013 adobe flash and 1 more... |
|
|
||
Software →
Adobe Flash →
Types of Adobe Flash animationStarted by SmartWeb, 05 Nov 2013 adobe flash, animation types |
|
|
||
Software →
Adobe Illustrator →
HelloStarted by uzairdesigner, 20 Oct 2013 adobe flash, making games |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users