View Full Version : Map
Astheria
03-15-2006, 07:24 PM
If I were to take a bitmap of the USA with each state divided normally. (A 'political' map to those who know what I mean) and I wanted to make certain states change color onRollOver, how would I go about doing this?
Thanks much in advance for any help provided.
vizslakeeper
03-17-2006, 05:46 PM
OK, I am pretty new at this, too, but this is how I would pull it off in Flash...
Import your bitmap to the stage and convert it to a graphic. Then place the graphic where you need it, in its own layer, zoom it WAY in, and draw over (in a layer above the map) the state outlines that you need to use. Fill the outline with whatever color/transparancy you want, delete the outline, and convert the fill to a button. Go into the button instance, and drag the colored frame from the "up" state to the "over" state; then it will be colored only when the mouse rolls over it.
I know it is a little labor intensive, but it will work. I would be interested in knowing if anyone else has another idea...
gogole
03-17-2006, 08:36 PM
i have abetter idea,why dont you make them change thrir transparency.that will bring about better effects and will also appeal to users.please correct syntax if there are mistakes.
for every state attach this code:
functiontrans(){
getproperty = _alpha;
trans =_alpha
new trans =(_alpha*2)
}
oneventrollover(){
init(functiontrans())
}
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.