# Help with automatic image panning in AS2 (Flash CS5)

**URL:** https://forum.kirupa.com/t/help-with-automatic-image-panning-in-as2-flash-cs5/331904
**Category:** flash
**Created:** [November 21, 2013, 6:09pm UTC](https://forum.kirupa.com/t/help-with-automatic-image-panning-in-as2-flash-cs5/331904 "2013-11-21T18:09:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![coastalstudio](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@coastalstudio](https://forum.kirupa.com/u/coastalstudio)
#### Post date: [November 21, 2013, 6:09pm UTC](https://forum.kirupa.com/t/help-with-automatic-image-panning-in-as2-flash-cs5/331904/1 "2013-11-21T18:09:02Z")

</div>

Hi there,

I’m looking for some urgent help with a flash banner ad I’m working on…

Basically, I would like an image to appear and then automatically pan horizontally from left to right, where it will then fade out. Ideally I would like to do this all with code (AS2). I’ve seen a tutorial on interactive image panning (see link below) but would like to know how to achieve the same effect without having to interact with the mouse.

[http://www.kirupa.com/developer/flash8/interactive\_image\_pan.htm](http://www.kirupa.com/developer/flash8/interactive_image_pan.htm)

If anyone could help me it would be very much appreciated!

Many thanks :thumb:
