# AS3 - Dynamically moving map

**URL:** <https://forum.kirupa.com/t/as3-dynamically-moving-map/281019>\
**Category:** flash\
**Created:** [February 4, 2009, 12:03am UTC](https://forum.kirupa.com/t/as3-dynamically-moving-map/281019 "2009-02-04T00:03:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanwolter](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ryanwolter](https://forum.kirupa.com/u/ryanwolter)\
**Post date:** [February 4, 2009, 12:03am UTC](https://forum.kirupa.com/t/as3-dynamically-moving-map/281019/1 "2009-02-04T00:03:44Z")

</div>

I’m working on a project that requires a small map to follow the user down the page as they scroll through listings. Although I’ve seen this done with Javascript, I can’t seem to find an example of this done in a Flash app.

Here’s an example using Javascript:  
[http://www.yelp.com/search?find\_loc=Downtown%2C+Los+Angeles%2C+CA&cflt=restaurants](http://www.yelp.com/search?find_loc=Downtown%2C+Los+Angeles%2C+CA&cflt=restaurants)

If anyone has any suggestions on how to dynamically move an element based on the position of the browser’s scrollbars it would be much appreciated.
