I’d like to take credit for this work but, I pretty much used code from examples around the place and made some of my own changes, but I’ve tried to keep the code as tidy as I can.
Below is a screen shot of the project?

When I test the movie I get this Syntax error
Symbol=panorama, layer=Layer 1, frame=1:Line 12:
dup = "image" add m;
And here is the code for the draggerControl MC (frame 1 of 3)
startDrag("", true);
movieheight = 215;
moviewidth = 520;
// variables
w = getProperty("../movie1", _width);
h = getProperty("../movie1", _height);
// Drag Speed is INVERSE: ie: setting to a higher number will SLOW down the speed...
speed = 15;
// begin drag calculations
xPos = getProperty("", _x);
yPos = getProperty("", _y);
// Center the Drag Effect
xPos = xPos-(moviewidth/2);
yPos = yPos-(movieheight/2);
// slide <--x-->
setProperty("../movie1", _x, getProperty("../movie1", _x)-(xPos/speed));
if (Number(getProperty("../movie1", _x))<Number(-(w/2))) {
setProperty("../movie1", _x, 0.01);
} else if (Number(getProperty("../movie1", _x))>0) {
setProperty("../movie1", _x, -w/2);
}
// slide y
setProperty("../movie1", _y, getProperty("../movie1", _y)-(yPos/speed));
// limit y to movie height
pic_y = getProperty("../movie1", _y);
if (Number(pic_y)>0) {
setProperty("../movie1", _y, 0);
}
if (Number(pic_y)<Number((movieheight-h))) {
setProperty("../movie1", _y, (movieheight-h));
}
And here is the code for the draggerControl MC (frame 2 of 3)
gotoAndPlay(_currentframe-1); // this just returns to frame 1 creating a loop effect
And here is the code for the draggerControl MC (frame 2 of 3)
Stop;
In my main timeline I have created a button inside a clip, which is the size of my mask and in the same position. The button basically says, onRollover allow the scrolling and by playing frame 1+2. And onRollout stop scrolling by stopping at frame three.
I am hoping this is just a simple problem that I can't comprehend but if not, I doubt anyone is going to be able to help me with this without looking at the project itself so if you would like to lend a hand and help me out you can download my source. But you will need Flash8.
Download Files
Thanks in advance
FlawedKid
