Thanks. great help!

Corban Baxter      |      rich media designer      |      www.funimation.com


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Grant Cox
Sent: Wednesday, February 01, 2006 6:17 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] quick array question

Use Array.splice() to remove an element.

randomPos = random(total);
rfcClip = rfcsArray[randomPos];
imgID = imgArray[randomPos];

rfcsArray.splice(randomPos, 1);
imgArray.splice(randomPos, 1);

total--;



Corban Baxter wrote:

>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
>[email protected]
>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>  
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to