Use this code to generate random colors.You can use the ColorTransform for this inside a loop.
private var redBias:Number = 0xFF;
private var greenBias:Number = 0xFF;
private var blueBias:Number = 0xFF;
var ct:ColorTransform = new ColorTransform(1,1,1,1,Math.random()*redBias,Math.random()*greenBias,Math.random()*blueBias);
var color:uint = ct.color;
nice, great 4 this chart app I’m making
Good Trik. very usefull for dynamic charting in flex.
Great post! I plan to use this color transform method to create some random color plot series data. Thank you for posting.
randomColor:uint = Math.random() * 0xFFFFFF;
-RM3sh
Thanks, This is what I was looking for. Great job
Math.random() * 0xFFFFFF
thnx