# Dynamically zoom in on a map

**URL:** <https://forum.kirupa.com/t/dynamically-zoom-in-on-a-map/206912>\
**Category:** Uncategorized\
**Created:** [November 13, 2006, 3:44am UTC](https://forum.kirupa.com/t/dynamically-zoom-in-on-a-map/206912 "2006-11-13T03:44:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kredd](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kredd](https://forum.kirupa.com/u/kredd)\
**Post date:** [November 13, 2006, 3:44am UTC](https://forum.kirupa.com/t/dynamically-zoom-in-on-a-map/206912/1 "2006-11-13T03:44:12Z")

</div>

hey all, i have a campus map. i’m needing the user to be able to click a building and have the the map(which is a movie clip) ‘zoom in’ on that building…and then be able zoom out as well. i can set the \_width/\_height and \_x/\_y but it’s the actual ‘animated’ zooming i can’t figure out.

the map is in a scrollPane so it would be great if i could set a “target” x/y coordinate for the building to zoom to so that if the user happens to click on a building at the bottom of the scrollPane it goes where i want it and doesn’t just zoom of the page. make sense?

thanks.
