varoon

Editing Existing palette/Color Theme

Recommended Posts

Hi

 

 

 

How do i edit the existing palette in the FLA / as files.

 

 

 

May i know in which files they are coded ?

 

 

 

so i can change the color codes to my needs.

 

 

 

any one tried ??

Share this post


Link to post
Share on other sites

where is the palette=" 1/2/3/4/5.... " is specified ?????

 

 

 

i could see only the default colors in that file.

 

 

 

when i enter palette ="4" i get some Redish Brown effect in my charts... how to i change those color theme... ? where is it specified ?

 

 

 

could u mention in which file and line no ? / variable name ? / function name ??

 

 

 

:exclamationmark:

Share this post


Link to post
Share on other sites

Hi,

 
Please see the code below:
You can find this code in the same file i.e. DefaultColors.as
 
function DefaultColors ()

{

//Initialize the array and store colors

//Colors are to be stored in HEX without #.

//If you want to add your list of colors, just add

//them to the array below and recompile the chart.

//colors = new Array("0099CC", "FF0000", "006F00", "FF66CC", "0099FF", "996600", "669966", "7C7CB4", "FF9933", "CCCC00", "9900FF", "999999", "99FFCC", "CCCCFF",

"669900", "1941A5");

 
------ SECTION : 1 : ---------

colors = new Array ("AFD8F8", "F6BD0F", "8BBA00", "FF8E46", "008E8E", "D64646", "8E468E", "588526", "B3AA00", "008ED6", "9D080D", "A186BE", "CC6600", "FDC689", "ABA000",

"F26D7D", "FFF200", "0054A6", "F7941C", "CC3300", "006600", "663300", "6DCFF6");

//Initialize Iterator

_iterator = 0;

//Palette color arrays

// ------------- For 2D Chart ---------------//

 
------ SECTION : 2 : ---------

this.bgColor = new Array ("CBCBCB,E9E9E9", "CFD4BE,F3F5DD", "C5DADD,EDFBFE", "A86402,FDC16D", "FF7CA0,FFD1DD");

this.bgAngle = new Array (270, 270, 270, 270, 270);

this.bgRatio = new Array ("0,100", "0,100", "0,100", "0,100", "0,100");

this.bgAlpha = new Array ("50,50", "60,50", "40,20", "20,10", "30,30");

this.canvasBgColor = new Array ("FFFFFF", "FFFFFF", "FFFFFF", "FFFFFF", "FFFFFF");

this.canvasBgAngle = new Array (0, 0, 0, 0, 0);

this.canvasBgAlpha = new Array ("100", "100", "100", "100", "100");

this.canvasBgRatio = new Array ("", "", "", "", "");

this.canvasBorderColor = .....

........
........
........
 
The Section : 1 contains an array of colors for the Dataplot (Bar, Column, Pie, Doughnut, etc...)
The Section : 2 Contains an array of PALETTE colors (seperated by commas(,)).
 
Please see the image:

ddff81e3-9a4b-488c-87e4-b434.png

post-1757-128441570168_thumb.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now