try checking into the Array .splice method
Method; adds and removes elements from an array. This method modifies the
array without making a copy.
var myPets_array:Array = new Array("cat", "dog", "bird", "fish");
trace( myPets_array.splice(1) ); // dog,bird,fish
trace( myPets_array ); // cat
----- Original Message -----
From: "Corban Baxter" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, February 01, 2006 4:58 PM
Subject: [Flashcoders] quick array question
Ok one quick array question...
randomPos = random(total);
rfcClip = rfcsArray[randomPos];
imgID = imgArray[randomPos];
total--;
//now how can I delete those two records from my two arrays and
recompile the arrays for use next time? I want to slowing delete the
entire array so that I never use one twice... thanks.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders