# Locate country in a zoomeable and map

**URL:** https://forum.kirupa.com/t/locate-country-in-a-zoomeable-and-map/507
**Category:** Uncategorized
**Created:** [July 19, 2002, 7:21pm UTC](https://forum.kirupa.com/t/locate-country-in-a-zoomeable-and-map/507 "2002-07-19T19:21:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Asterix](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Asterix](https://forum.kirupa.com/u/Asterix)
#### Post date: [July 19, 2002, 7:21pm UTC](https://forum.kirupa.com/t/locate-country-in-a-zoomeable-and-map/507/1 "2002-07-19T19:21:26Z")

</div>

Hi there,

```
        I'm pretty new to Flash MX and I'm working with a world map which I can zoom and pan (this is working fine...).

        I now have to click on any country on my map and get this special country of the map positioned right in the centre of my stage. I’ve been trying for a couple of days with the _x,_xmouse,_y and _ymouse properties, but I never get to do it right... And my problem gets worst when I start panning and zooming the map, cause _x,_y and _xscale and _y_scale values vary constantly. 

        Could you please give me any tip or recommendation? 

        Any help will be appreciated,

        Thanks in advance,
        Asterix
```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 19, 2002, 7:52pm UTC](https://forum.kirupa.com/t/locate-country-in-a-zoomeable-and-map/507/2 "2002-07-19T19:52:29Z")

</div>

I would personally create an object. each “sub-object” would represent the country, and would contain the \_x and \_y coords for each one where you would like it to appear.

then have a small function which accepts this info and places the movie properly.

Hope this helps you somewhat.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 19, 2002, 8:03pm UTC](https://forum.kirupa.com/t/locate-country-in-a-zoomeable-and-map/507/3 "2002-07-19T20:03:08Z")

</div>

Dont you figure out how to do it dynamically ?  
Because I have more than 240 countries.

I have a hierarchy of movie clips:

map component (target, boundaries, map\*, etc) \> map\* \> all country maps (like a puzzle) \> each country map (movieclip and finally a button)

Thanks four your help!
