# Zooming a map

**URL:** <https://forum.kirupa.com/t/zooming-a-map/79667>\
**Category:** Uncategorized\
**Created:** [February 16, 2005, 4:06am UTC](https://forum.kirupa.com/t/zooming-a-map/79667 "2005-02-16T04:06:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Celeste\_Lee](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@Celeste\_Lee](https://forum.kirupa.com/u/Celeste_Lee)\
**Post date:** [February 16, 2005, 4:06am UTC](https://forum.kirupa.com/t/zooming-a-map/79667/1 "2005-02-16T04:06:54Z")

</div>

Hi everybody. I am newbie of action script. Can anybody help me dealing with the code below.  
**May I know what’s the mening stand for the setProperty… and from the if (Number(curZoom) == 0)**

on (release, keyPress “\<Left\>”) {  
if (Number(curxScroll)\<Number(maxXpos)) {

setProperty("/map", \_x, Number(getProperty("/map", \_x))+Number(intScroll));

if (Number(curZoom) == 0) {

curxScroll = Number(curxScroll)+Number(intScroll);

} else if (Number(curZoom) == 1) {

curxScroll = Number(curxScroll)+Number(intScroll/2);

}

if (Number(curZoom) == 2) {

curxScroll = Number(curxScroll)+Number(intScroll/4);

} else if (Number(curZoom) == 3) {

curxScroll = Number(curxScroll)+Number(intScroll/8);

}

}

}

Thanks for kindly helping. Does anybody know where i able get the tutorial for map zooming?
