Hi. I’m quite new in ActionScript (but I know the basics). Well anyway, I have a small problem. I’m doing this fake panorama to my site and I’ve used this Interactive Image Panning code I found here at kirupa.com. Now I have added some buttons into it and by pressing those I would like the image to move to a specific position (with ease if it’s possible) and stop. And by pressing another button the panning starts again. Is it possible to add to this code?
(I have made some little modifications to the code. There is a mask area where the panning works and if your mouse is outside the area the panning doesn’t work)
I’m using this same technique on a website I’m working on except the cursor moves up and down as well as left and right. This works fine however. It’s when I want to start the panning again after stopping it do things go south. Here’s my actionscript:
img.SS_mc.exit.onRelease = function ():Void {
gotoAndStop(1);
onMouseMove = function ():Void {
constrainedMove(img, 5, 0, 0, _xmouse, _ymouse);
};
};
The movieclip is nested inside of the SS_mc movieclip. When I put this script at the root level it won’t work at all but when I put it on the same level as the movieclip only the gotoAndStop command works. Either way the onMouseMove function is not coming back to life. Any help on this would be great. Thanks so much!