Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

Adobe Flash Array function

adobe flash array function

  • Please log in to reply

#1 Ammar11


    Senior Member

  • Designer
  • 197 posts

Posted 01 March 2013 - 11:48 PM

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).
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.
var myArray:Array = Array();
trace(myArray); //traces 10
myArray[4] = 5;
trace(myArray); //traces 10,undefined,undefined,undefined,5

Also tagged with one or more of these keywords: adobe flash, array function

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users