# Actionscript to pan and zoom like Google maps

**URL:** <https://forum.kirupa.com/t/actionscript-to-pan-and-zoom-like-google-maps/237088>\
**Category:** flash\
**Created:** [August 27, 2007, 6:52am UTC](https://forum.kirupa.com/t/actionscript-to-pan-and-zoom-like-google-maps/237088 "2007-08-27T06:52:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akisok2](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/akisok2/32/3024_2.png) [@akisok2](https://forum.kirupa.com/u/akisok2)\
**Post date:** [August 27, 2007, 6:52am UTC](https://forum.kirupa.com/t/actionscript-to-pan-and-zoom-like-google-maps/237088/1 "2007-08-27T06:52:02Z")

</div>

This website does an awesome job of controlling pan and zoom for the main movie:

[http://www.thisisactualsize.com/main.html](http://www.thisisactualsize.com/main.html)

What I want to do is something similar but also allow for the user to click and drag the larger picture. Just like you can on Google maps. Any hints?

---

<div class="post-metadata">

**Author:** ![Enebreus](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@Enebreus](https://forum.kirupa.com/u/Enebreus)\
**Post date:** [May 20, 2008, 7:37pm UTC](https://forum.kirupa.com/t/actionscript-to-pan-and-zoom-like-google-maps/237088/2 "2008-05-20T19:37:58Z")

</div>

Sorry, I’m a year late! I know, very bad form to bring this message back from the dead!

BUT…

I just wrote an application which does the the whole pan/zoom thing! I was Googling to see if anyone had a different solution to the problem and stumbled upon this post.

You can find my version (with source code!) on [http://blog.organa.ca/?p=16](http://blog.organa.ca/?p=16)  
I try to explain the trickier parts of the code in my post too. In case you’re wondering about the math.

Sorry for the shameless self promotion but I already had a Kirupa forum account so I figured I might as well help some people out if they’re ever running a Google search for ‘pan zoom AS3’ 🙂

Peter Organa

---

<div class="post-metadata">

**Author:** ![rebelsoul2005](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rebelsoul2005](https://forum.kirupa.com/u/rebelsoul2005)\
**Post date:** [May 21, 2008, 10:35am UTC](https://forum.kirupa.com/t/actionscript-to-pan-and-zoom-like-google-maps/237088/3 "2008-05-21T10:35:34Z")

</div>

> [@Enebreus;2328825](#):
>
> Sorry for the shameless self promotion but I already had a Kirupa forum account so I figured I might as well help some people out if they’re ever running a Google search for ‘pan zoom AS3’ 🙂

Hey! I was searching for that exact term this morning - good work (and timing) sir!
