Thanks for the comments and, trust me there is no epeen involved :-) Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: That's a fantastic example of over-architecting if I ever saw one. Put away your epeen! ;)
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Arindam Dhar > Sent: Friday, December 22, 2006 12:10 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Remove elements from Array > > function removeElements(arr, level) { > > for (var i = 0; i> { > var tempArr = arr[i]; > > if(Number(tempArr[1] ) < Number(level)) > { > arr.splice(i, 1); > arguments.callee(arr, level); > } > > } > } > removeElements(myArray1, 0); > trace( myArray1); > > ---- Arindam _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com Send instant messages to your online friends http://asia.messenger.yahoo.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com