Skip to main content
markerline
Inspiring
April 6, 2015
Answered

sort by color attribute (infographics?)

  • April 6, 2015
  • 5 replies
  • 907 views

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.

This topic has been closed for replies.

5 replies

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 7, 2015
markerline
Inspiring
April 7, 2015

Wow kglad.  Thanks for this resource.  I have sometimes visited this page in other situations but forgot that they might have an example suited for my question.  I will try to implement some of these techniques outlined there to get at my solution.

kglad
Community Expert
Community Expert
April 7, 2015

you're welcome.