# Hot spots on map

**URL:** <https://forum.kirupa.com/t/hot-spots-on-map/311233>\
**Category:** Uncategorized\
**Created:** [June 30, 2010, 8:39pm UTC](https://forum.kirupa.com/t/hot-spots-on-map/311233 "2010-06-30T20:39:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rserge](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@rserge](https://forum.kirupa.com/u/rserge)\
**Post date:** [June 30, 2010, 8:39pm UTC](https://forum.kirupa.com/t/hot-spots-on-map/311233/1 "2010-06-30T20:39:15Z")

</div>

Hello,

I have embedded clickable mc’s which contain a btn symbol inside them, into the map\_mc.(I think this is correct to do.)  
I would like to center the map on that hotspot when clicked, and bring map to 100%scale.

```auto

on (press) {
	map_mc.moveTo(0,0)
	map_mc._xscale=100
	map_mc._yscale=100
}

```

The coordinates (0,0) is just an example. Those coordiinates will vary depending on location of hotspot. Is there a code for identifying location of hotspot and centering on it?  
[http://www.sergemedia.net/ds2/finaldemo/mapdemo.html](http://www.sergemedia.net/ds2/finaldemo/mapdemo.html)

The red dot is the one containing code. Green dot is not programmed.
