helpful:
http://livedocs.adobe.com/flash/9.0_tw/ActionScriptLangRefV3/Array.html
var myArray:Array = new Array("Flash", "ActionScript", "Republic of Code");
trace(myArray);
trace(myArray[0]);
//add elementmyArray[3] = "Tutorial";
//remove from 2nd and 1 item
myArray.splice(2,1);
//remove the last item
myArray.pop();
//add one item at the last
myArray.push("39");
http://livedocs.adobe.com/flash/9.0_tw/ActionScriptLangRefV3/Array.html
var myArray:Array = new Array("Flash", "ActionScript", "Republic of Code");
trace(myArray);
trace(myArray[0]);
//add elementmyArray[3] = "Tutorial";
//remove from 2nd and 1 item
myArray.splice(2,1);
myArray.pop();
//add one item at the last
myArray.push("39");
沒有留言:
張貼留言