Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

sort by color attribute (infographics?)

Mentor ,
Apr 06, 2015 Apr 06, 2015

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.

TOPICS
ActionScript
832
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 07, 2015 Apr 07, 2015
Translate
Community Expert ,
Apr 07, 2015 Apr 07, 2015
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 07, 2015 Apr 07, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 07, 2015 Apr 07, 2015
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 07, 2015 Apr 07, 2015
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 07, 2015 Apr 07, 2015

There is also this flipbook that I made in a 3D app.  It's quite easily done there but in Flash there are other scripting considerations to be made to achieve the same results.flipbook.gif

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines