MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference page 122

Actionscript language reference
Table of Contents

Advertisement

The following example creates an array and splices it using element index 1 for the
start
parameter, the number 0 for the
parameter, and the string
for the
deleteCount
chair
value
parameter. This does not remove anything from the original array, and adds the string
at
chair
index 1:
var myFurniture_array:Array = new Array("couch", "bed", "desk", "lamp");
trace( myFurniture_array.splice(1,0, "chair" ) ); // displays empty array
trace( myFurniture_array ); // displays couch,chair,bed,desk,lamp
122
Chapter 2: ActionScript Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents