To add one or more elements to the begining of an array, you will have to use unshift method of Array class.
var albums:Array = new Array("Record1","Record2","Record3","Record4");
albums.unshift("Record5");
trace(albums); //Record5,Record1,Record2,Record3,Record4
Saturday, November 8, 2008
Subscribe to:
Posts (Atom)