# Interactive Image Panning - question re: tutorial written by kirupa, by Krilnon

**URL:** <https://forum.kirupa.com/t/interactive-image-panning-question-re-tutorial-written-by-kirupa-by-krilnon/203470>\
**Category:** flash\
**Created:** [October 11, 2006, 11:03am UTC](https://forum.kirupa.com/t/interactive-image-panning-question-re-tutorial-written-by-kirupa-by-krilnon/203470 "2006-10-11T11:03:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Wood](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/j_wood/32/2902_2.png) [@J\_Wood](https://forum.kirupa.com/u/J_Wood)\
**Post date:** [October 11, 2006, 11:03am UTC](https://forum.kirupa.com/t/interactive-image-panning-question-re-tutorial-written-by-kirupa-by-krilnon/203470/1 "2006-10-11T11:03:51Z")

</div>

I’m not sure if this is in the right forum, sorry first time here.

I’ve been looking at the tutorial provided by Krilnon on 02 July 2006 named Interactive image panning. A very neat little tute, but I’d like to develop the actionscript to suit a project I’m currently working on. Unfortunately my understanding of Actionscript is poor…

In the original tutorial Krilnon uses Stage.width to keep the scrolling image within the boundries of the stage.

I would like to use an image which is the same width as the stage and get it to scroll only marginally. The image is behind a mask which it must scroll within the boundries of.

To make things a little bit more complicated, I actually have 3 images behind a mask which I’d like to scroll at different speeds.

I’ve uploded a swf which illustrates the idea, but uses different actionscript and (as you can see) the images move whereever the mouse goes with no constraint.

[http://img214.imageshack.us/my.php?image=citytestfe4.swf](http://img214.imageshack.us/my.php?image=citytestfe4.swf)

I think what I need to do is replace the Stage.width in Krilnon’s code with the dimensions of the mask, but I don’t know how to do this.

Can anyone help???
