I need someone to give me some pointers on how to scroll around the attached movie. It you take a look at the floor plan , this is going to be much bigger and I want the user to be able to move the mouse point up and the plan move down and so on.
Make your floor plan image a movie clip. use AS to modify the x and y position of the mc according to the position of the mouse. us if statements so that the mc doesnt scroll off the screen.
Go it working but can't seem to stop in scrolling at the correct point (I.E. at the edges of the movie clip) The dimension of the clip are. W. 1530 H 891.6 X. 409.6 Y. 290.9
stop();
_root.onEnterFrame = function() {
floorPlan_mc._y = floorPlan_mc._y+(0.5*Stage.height-_ymouse)/10;
if (floorPlan_mc._y<-365) {
floorPlan_mc._y = -365;
}
if (floorPlan_mc._y>365) {
floorPlan_mc._y = 365;
}
floorPlan_mc._x = floorPlan_mc._x+(0.5*Stage.width-_xmouse)/10;
if (floorPlan_mc._x<-1168) {
floorPlan_mc._x = -1168;
}
if (floorPlan_mc._x>1168) {
floorPlan_mc._x = 1168;
}
};
So what values do I put in the above for the _y and _x ? I can't work it out !