Feeds:
Posts
Comments

Archive for March, 2008

Generate random colors

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;

Read Full Post »

You can remove the default drop shadow from a LineChart chart in Flex by setting the seriesFilters property, as shown in the code below

<mx:LineChart id=”lineChart” showDataTips=”true” dataProvider=”{incomeAC}” width=”100%” height=”100%” seriesFilters=”[]“>
<!? . . . ?>
</mx:LineChart>
OR
<mx:LineChart id=”lineChart” showDataTips=”true” dataProvider=”{incomeAC}” width=”100%” height=”100%“>

Read Full Post »