# Help! I need to build an interactive map

**URL:** <https://forum.kirupa.com/t/help-i-need-to-build-an-interactive-map/216912>\
**Category:** flash\
**Created:** [February 21, 2007, 4:28pm UTC](https://forum.kirupa.com/t/help-i-need-to-build-an-interactive-map/216912 "2007-02-21T16:28:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanlav](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@tanlav](https://forum.kirupa.com/u/tanlav)\
**Post date:** [February 21, 2007, 4:28pm UTC](https://forum.kirupa.com/t/help-i-need-to-build-an-interactive-map/216912/1 "2007-02-21T16:28:42Z")

</div>

Hey All,

I was wondering if someone could help me with building a map that I could zoom into and drag around withen a designated window space.

The problem I am having is that when I am dragging the map. I would like it so that the edges of the map are held withen the boundaries of the flash file.

you can check out the URL at: [http://www.tl-design.ca/test](http://www.tl-design.ca/test)

The example posted only shows the dragging which seems to be my biggest concern right now.

This is the script I used for the drag as well.

onClipEvent (mouseDown) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse)) {  
this.startDrag();  
}  
}

onClipEvent (mouseUp) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse)) {  
this.stopDrag();  
}  
}

I tried using an if (this.\_x \> 0) then stopDrag type of script and it worked… kind of. But it totally disengages the dragging function after that the condition is met making the map unusable.:\*(

So if anyone can help me at all that would be great.

Thx.
