Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database value sets color property of picture

Status
Not open for further replies.

Samoyed

Programmer
Jul 13, 2001
17
CA
Hi,

I'm just curious if this is possible. I have a map divided into 2 regions. The population for each region is stored in a database which I would like to pull up and display in my picture. However, I would like to make the regions a specific color based on the population size. Is this possible? For example if I update my database with new population numbers, then according to a color scheme, the color of that region can be set following a color scheme which I set up initially. Has anyone seen such a thing? If so could you please list the URL, thanx. {=-)
 
does not sound too difficult

make each region a movieclip and give them instance names
(eg region1, region2 )

if (poulation>100){
myColor = new Color(region1);
myColor.setRGB(0xff0000);
}

well im sure you get the idea
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top