# Zooming map qestion

**URL:** <https://forum.kirupa.com/t/zooming-map-qestion/79958>\
**Category:** Uncategorized\
**Created:** [February 18, 2005, 7:57am UTC](https://forum.kirupa.com/t/zooming-map-qestion/79958 "2005-02-18T07:57:42Z")\
**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 18, 2005, 7:57am UTC](https://forum.kirupa.com/t/zooming-map-qestion/79958/1 "2005-02-18T07:57:42Z")

</div>

Hi, I am newbie of actionscript. I have a pice of code regarding the map zooming and movement of map by North, west, east… direction.This code is from a CD tutorials. The code is as below:  
[font=Times New Roman][size=3]**on (release, keyPress “\<Left\>”) {**[/size][/font]

[size=3][font=Times New Roman]\*\* if (Number(curxScroll)\<Number(maxXpos)) {\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* setProperty("/map", \_x, Number(getProperty("/map", \_x))+Number(intScroll));\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* if (Number(curZoom) == 0) {\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* curxScroll = Number(curxScroll)+Number(intScroll);\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* } else if (Number(curZoom) == 1) {\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* curxScroll = Number(curxScroll)+Number(intScroll/2);\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* }\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* if (Number(curZoom) == 2) {\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* curxScroll = Number(curxScroll)+Number(intScroll/4);\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* } else if (Number(curZoom) == 3) {\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* curxScroll = Number(curxScroll)+Number(intScroll/8);\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* }\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* }\*\*[/font][/size]

[font=Times New Roman][size=3] **}** [/size][/font]

- This is only part of the code.  
Question here, may I know what is stand for  
**[font=Times New Roman][size=3] 1) setProperty("/map", \_x, Number(getProperty("/map", \_x))+Number(intScroll));?[/size][/font]**  
**[font=Times New Roman][size=3]2)if (Number(curZoom) == 2) [/size][/font]**  
**[font=Times New Roman][size=3]{  
[size=3][font=Times New Roman]** curxScroll = Number(curxScroll)+Number(intScroll/4);\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* } else if (Number(curZoom) == 3) {\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* curxScroll = Number(curxScroll)+Number(intScroll/8);\*\*[/font][/size]

[size=3][font=Times New Roman]\*\* }\*\*[/font][/size]

[/size][/font]\*\*\*\*[font=Times New Roman][size=3]May somebody explain to me the meaning for each function?[/size][/font]\*\*  
**[font=Times New Roman][size=3][/size][/font]**  
[font=Times New Roman][size=3]I would like to know why i can gain the tutorials for how to zooming a map view, or moving the view of map?[/size][/font]  
**[font=Times New Roman][size=3][/size][/font]**  
**[font=Times New Roman][size=3]Thank you for helping.[/size][/font]**
