[Flashcoders] Algo's to change the ordering of arrays

2007-01-17 Thread Mike Mountain
I'm looking for some simple algo's to change the ordering of an array which represents squares in a grid: In the first instance I want to translate from 0 3 6 1 4 7 2 5 8 Existing Array=new Array(0,3,6,1,4,7,2,5,8) To: 0 1 2 7 8 3 6 5 4 (0,1,2,7,8,3,6,5,4) Ideally I'd want a whole bunch of

AW: [Flashcoders] Algo's to change the ordering of arrays

2007-01-17 Thread Andreas Weber
Something like a spiral-sort? http://chattyfig.figleaf.com/pipermail/flashcoders/2005-March/134713.html hth - Andreas Weber -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Mike Mountain Gesendet: Mittwoch, 17. Januar 2007 16:37 An:

Re: [Flashcoders] Algo's to change the ordering of arrays

2007-01-17 Thread eka
Hello :) the algo to the zsorting can inspire you to find your algo : http://www.tweenpix.net/blog/index.php?q=grid+algo EKA+ :) 2007/1/17, Mike Mountain [EMAIL PROTECTED]: I'm looking for some simple algo's to change the ordering of an array which represents squares in a grid: In the

RE: [Flashcoders] Algo's to change the ordering of arrays

2007-01-17 Thread Hairy Dog Digital
Happen to have a link to an English version? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eka Sent: Wednesday, January 17, 2007 10:59 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Algo's to change the ordering of arrays Hello :) the