sort by color attribute (infographics?)
I have viewed this page though I have not tried to implement the example in a running flash file:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/motion/Color.html
What I would like to know is let us suppose:
1) I create a grid or polar grid of random squares or circles, random in the fact that they have random colors
2) I push each random color that is defined at the init() stage of the function call (I create the init function myself) into an Array so as not to lose the color values
3) I then click a button and the squares or circles tween into position in order of their hue value on a color wheel so that they are sorted and arranged like a rainbow.
How is this achieved? I know this seems like a classic question that has been done before but I am just now getting around to making this sort of thing known to myself.
Any answers to this question will be helpful. Thanks in advance.
