from: http://livedocs.adobe.com/flex/3/html/Capturing_User_Input_4.html here is some Adobe code to create random colors:
function changeColor(event:ContextMenuEvent):void
{
square.transform.colorTransform = getRandomColor();
}
function getRandomColor():ColorTransform
{
return new ColorTransform(Math.random(), Math.random(),
Math.random(),1,(Math.random() * 512) - 255, (Math.random() * 512)
-255, (Math.random() * 512) - 255, 0);
}
HTH
John

