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.
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???