# Auto scroll a map - help please!

**URL:** <https://forum.kirupa.com/t/auto-scroll-a-map-help-please/6139>\
**Category:** Uncategorized\
**Created:** [September 30, 2002, 4:31pm UTC](https://forum.kirupa.com/t/auto-scroll-a-map-help-please/6139 "2002-09-30T16:31:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![toddl](https://avatars.discourse-cdn.com/v4/letter/t/ecc23a/32.png) [@toddl](https://forum.kirupa.com/u/toddl)\
**Post date:** [September 30, 2002, 4:31pm UTC](https://forum.kirupa.com/t/auto-scroll-a-map-help-please/6139/1 "2002-09-30T16:31:31Z")

</div>

hello all, what a great place this is.

I have an oversized map that I wish to use in my flash file, what I would like is to have the map scroll from left to right and right to left just by moving the mouse to the right or left, and various points on the map will be clickable (that part I can do)

is this possible?, I am new to actionscript, any help would be most appreciated

thanks in advance

toddl=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2002, 9:06pm UTC](https://forum.kirupa.com/t/auto-scroll-a-map-help-please/6139/2 "2002-10-02T21:06:37Z")

</div>

The simplest solution I can think of offhand would be to place the map inside a movie clip, then use the onClipEvent(enterFrame) and updateAfterEvent(mouseMove) handlers to detect the position of the mouse (using \_xMouse and \_yMouse) and scroll the MC containing the map accordingly.

If no one else thinks of a cleaner method, come back to me and I’ll explain the ActionScript in a bit more detail.
