Re: [flexcoders] Re: Generating random colors, excluding others

2009-01-13 Thread john fisher
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

[flexcoders] Re: Generating random colors, excluding others

2009-01-12 Thread gr33neye501
Thankyou Sunil for replying to my question. your example uses flash player 10, i can not view the example or the code for it. as it breaks my Flex builder, (still using Flex 3.0) I'm at a delicate stage of my project and can't afford Flex builder breaking and having to reinstall it all! Do

[flexcoders] Re: Generating random colors, excluding others

2009-01-10 Thread sunild999999
--- In flexcoders@yahoogroups.com, gr33neye501 dev...@... wrote: Hi guys I'm trying to generate a series of random colours, but would like to exclude certain colour and closely related shade. For example, i'd like create any colours except red or similar shades. Anyone know of how I could

[flexcoders] Re: Generating random colors, excluding others

2009-01-10 Thread sunild999999
--- In flexcoders@yahoogroups.com, gr33neye501 dev...@... wrote: Hi guys I'm trying to generate a series of random colours, but would like to exclude certain colour and closely related shade. For example, i'd like create any colours except red or similar shades. Anyone know of how I