how can i do this?

i have a question, some one may help.

i have a US map woth 50 states. How can i manupulate each state’s map individually.

for exmple, if i toutch the map of Michigan, then the map of michigan become in red color and so on. [import]uid: 83418 topic_id: 16189 reply_id: 316189[/import]

Looks like you’re going to have to separate the individual states into separate images, and position them individually.

From there, you can either set up a different image to show in it’s ‘selected’ state, or use the object:setFillColor() method that now works with display objects.

[import]uid: 52430 topic_id: 16189 reply_id: 60259[/import]

Thank you for your reply.

Yes, but if I separate the individual states to separate image,
It is very difficult to to put them together, I mean difficult to position them together, those coordinates, x,y positions. [import]uid: 83418 topic_id: 16189 reply_id: 60272[/import]

@mila,
There is no easier way, the best way is what Jonathan has suggested.

you can have a table with 50 entries and the state outlines with transparency, then place then with the x,y, so your table will have

“state_off”,“state_on”,x,y as an entry, and you will create two images, one for the state_off and one for state_on and state_off shall turn the state to ON and the state_on shall turn all to OFF (deselected)
I hope you did understand this,

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 16189 reply_id: 60286[/import]

thank you all sor help.

i think ia have little clue now. jist need to fegure out a way to put individual map together.
maybe i put a big map with a size 320*480, and find each states center point x and y ,then cut all staes from big map into 50 small images, so i can manipulate each image individually and can position all 50 states images back to one big map?

[import]uid: 83418 topic_id: 16189 reply_id: 60292[/import]