applexcore
08-05-2008, 05:53 AM
Alright, so I wanted to create an interactive electoral map to go up on my site, like the ones you see on CNN.com, and this stuff quickly went over my head. I have some experience in flash, but none in actionscript. I have the map drawn in flash but I still need to do the scripts to make it interactive. The basic things that need to be done are:
1. The map loads and starts with all the states gray in color (I already have done)
2. When a state is clicked on it needs to change to blue or red (I'm thinking of "one click blue-two clicks red-three clicks resets state" type of thing)
3. When the state is changed to a color it needs to add its electoral votes to the corresponding bar in a graph that would be at the bottom or to the side. So if you click on FL one time, it turns blue and adds 27 votes to the Democrat bar in the bar graph.
4. A way to store what the users pick in a MySQL database, but I'm more worried about getting the map working first.
This seems like it would be fairly simple but I'm completely lost at this point. If anyone could give me a basic outline of what I need to do so I can search for it or point me to the right tutorials, it would be greatly appreciated.
1. The map loads and starts with all the states gray in color (I already have done)
2. When a state is clicked on it needs to change to blue or red (I'm thinking of "one click blue-two clicks red-three clicks resets state" type of thing)
3. When the state is changed to a color it needs to add its electoral votes to the corresponding bar in a graph that would be at the bottom or to the side. So if you click on FL one time, it turns blue and adds 27 votes to the Democrat bar in the bar graph.
4. A way to store what the users pick in a MySQL database, but I'm more worried about getting the map working first.
This seems like it would be fairly simple but I'm completely lost at this point. If anyone could give me a basic outline of what I need to do so I can search for it or point me to the right tutorials, it would be greatly appreciated.