I have a map with 32 small states and I like to show the name of each state when the user mouse over the state.The states are all now buttons, the problem is that as the states are very small and reside closely sometimes the states with big names creates problem. So I am in search of tooltip that will display the name of the state when the user mouse over the state.
Can anyone help me. The state will be buttons and I could not use movie clip .
Thanks for the help. It works but I have to write 32 times for 32 states. I am in search of some way so that we can use some lesser code to do this. However I really appreciate your help.
In this example I have named the buttons/clips (state buttons) S0, S1, S2, S3, S4 and so on.
So "S0" corresponds with state 1 "S1" corresponds with state2, this is because arrays start at 0.
However, if you have the states named the same as the button clips you can do this instead.
PHP Code:
var states = Array("State1", "State2", "State3", "State4", "State5");