I guess I'd say it depends on what you're inputting to get your range. A hex color value consists of red, green and blue values. It goes 0xRRBBGG and you can probably guess which colors go where. If you don't know how to count in hex, F is the new 9. So it goes 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. So a value of 00 is no color saturation and FF is what....like 128 or something in decimal? All you need to know is that FF is the maximum. So pure red would be 0xFF0000. So yah, if you wanted to get a range of colors increment by each color intervals to get what you need. I'm not sure how to convert a string into a color....would eval do it? Maybe there's an RGB function. Hope this helps? Maybe you were asking something completely different!
ben

Merrill, Jason wrote:
Anyone have a function that returns an array of the hex color values for
a particular range (i.e., say the 144 hex colors you see in the Flash
IDE's color picker)?  Or know how to write one?  I'm not looking for a
complete color picker class or component, I'm creating my own with
specific needs, but to do so, I'm not sure how the hex number math
works. Don't really want to enter all the values manually.
Thanks.

Jason Merrill
Bank of America Learning & Organization Effectiveness - Technology Solutions _______________________________________________
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

_______________________________________________
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

Reply via email to