Wednesday, March 14, 2007

Colored map and captions combined

I'm making some headway, although I haven't figured out how to get to the captions to load the right data yet. That's frustrating me.

What I do have: a new Georgia map that has all the counties converted to MCs, code that colors the counties based on their Extension district affliation, and captions that show when any county is rolled-over (with space for county name and district).

Here's the file: ga_flashmapTest2

Once again, I've reached my limit for the evening. I had a good bit of trouble adding in the captions and getting the code to recognize my buttons.

I will say that this is becoming a stronger proof-of-concept with each step. I can dig into dynamic data pretty soon.

Just a little more tweaking of the code...
I've managed to get the caption to show unique info for each button, as well as adding a rollover effect to make the chosen county more obvious. It's still not what I want, but a bit of a relief because I've almost solved my current problem.

Here's the newest iteration: ga_flashmapTest3

Just playing with this a little, I see that I need to set some sort of boundary to keep the caption box from going off the stage. I'll need to look into this.

Code and books used:
Actionscript for Flash MX, Moock
  • Character Case Conversion - .toLowerCase
  • Color Class - .setTransform

 

0 comments: