I want to do something similar to these except I would like to have left and right arrow buttons that pan on rollOver and stop in place on rollOut.
http://www.kirupa.com/developer/flash8/interactive_image_pan.htm
http://www.flashloaded.com/flashcomponents/360panviewer/
I was able to get it to pan on mouseover correctly, but mouseout seems to moving the mc to -3830. Here’s my code
//code on panning_mc
onClipEvent(load){
_root.targetx = -3830; //Startposition
}
onClipEvent(enterFrame){
diff = _root.targetx - this._x;
this._x += diff/50;
}
//code on left button
on(rollOver){
_root.targetx = 50;
}
on(rollOut){
_root.targetx = panoramic_mc._x;
}
//code on right button
on(rollOver){
_root.targetx = -50;
}
on(rollOut){
_root.targetx = panoramic_mc._x;
}
Can anyone help?