Help! I need to build an interactive map

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

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.