Actionscript 2 - Written by Artluvr on Tuesday, January 1, 2008 23:12 - 18 Comments
Image Panning on Mouse Move – Flash, Actionscript 2
You can pan an image by simply moving you mouse.
If you wish to change the speed and direction then go to layer on line 39 and find the constrainedMove(image, 4, 1); code.
If you want to change the speed change the value 4 to something else. If you wish to change the direction change the number 1 to -1.
Price: € 2
Share and Enjoy:
18 Comments
Artluvr.com
mike
are you able to load swf files rather than jpgs? and also create hotspots w/ xml?
mike, you can load what ever you want. The item that is moving is a movieclip, so inside it you can load whatever you like!
Markus
Is it easy to create hotspots on the image file so that when clicked upon move you to another page?
Markus, yes it is very easy. The image is inside a movieclip so, you can add whatever you wish inside that movieclip!
brad
Does anyone know how to do this in Actionscript 3? Also the direction seems to be inversed here – the closer you go the right, it moves to the left.
Brad, if you wish to change the direction of the image movement change the last parameter of the constrainedMove function to -1 or anything else
//if you wish to change the direction change the 1 value to something else
constrainedMove(image, 4, -1);
I would like all directions inversed. move mouse left, scene pans right. Move mouse up, scene pans down, etc.
JRowe thank you for buying from Artluvr.com. Go to actions layer on line 39 and find the constrainedMove(image, 4, 1); code.
If you want to change the speed change the value 4 to something else. If you wish to change the direction change the number 1 to -1.
hey, that’s works with a movie clip, like a entire site, making this effect?
i saw you have answered my question before.
so, lets to next: there are any tutorial for adapt that .FLA with my project? or, if i need any help, could i have it? thanks.
AD
This is awesome, exactly what I need. Thanks very much!
AD
Hi, gotta a question:
If I add an object INSIDE the \\"image\\" movieclip, but place it outside its width & height, it scrolls too far on the y and x-axis…(probably because I\\\’m redefining the \\"image\\" movieclip size)
Is there a way I can set the scrolling to specific values instead of using the width and height of the \\"image\\" movieclip??
Would appreciate advise on this. Thanks again.
AD, the component doesn’t support that kind of functionality. You will have to change the code and instead of reading the width and height of the image you will have to type the custom width and height
here is the similar thread but it works for my requirment
http://www.flashmove.com/forum/archive/index.php/t-23118.html
_——————————————_
earn money :http://clixncash.com/index.php?p=1&ref=dsrvm
Thanks for offering this great solution for such a reasonable price!
Saved some time, its simple and easy to run with.
Is there an ActionScript 3.0 version available or in the works?
Kindest regards,
Jose
ZNBD
Sulaiman Al-Zuhair
hi Artluvr,
thanks for this. one quick question:
any idea how i could switch the initial image to a different picture?
i am thinking of purchasing this for an art gallery website i am working on, and i thought it would be cool to be able to switch through different paintings and “explore” them with this effect.
thanks again.
@Sulaiman, you can do it by removing every child inside the movieclip, and then adding the new image inside it.
Leave a Reply
Most Popular Content
- thecodemonster.net has a new logo
- XML Based Fullscreen Image Rotator With Proportional Resize – Flash CS3 – Actionscript 3
- MP3 Player – XML based – Flash CS3, Actionscript 3, Tweener
- XML based banner rotator – Actionscript 3, Flash CS3
- Image Panning on Mouse Move – Actionscript 3 – Flash CS3
- XML Image Gallery – Actionscript 3, Flash CS3, Tweener
- XML based image gallery – Actionscript 3, Flash CS3, Tweener
- Scrollbar with easing – Actionscript 3 – Tweener – Flash CS3
- 3D Carousel XML based – Actionscript 3, Flash CS3
- Papervision3D Spiral Carousel
- Depth of Field with Papervision3D & Tweener
- @Sulaiman, you can do it by removing every child inside the movieclip, and then ...
- @william, The calendar is a movieclip. You can just move it by changing the x an...
- @fuya, unfortunately you cannot add thumbnails, neither the gallery can autoplay...
- @jck, It's not the scroller's fault. Flash has a limit on the height of textfiel...
- Hi, I just started using the scroller, but I'm having trouble with a long text, ...
- The gallery is great.
To customize, I would like to know how can I make the g...
- how do i actually move the calendar along the x and y axis. i can move the backg...
- hi Artluvr,
thanks for this. one quick question:
any idea how i could swit...
Image Galleries
- XML Based Fullscreen Image Rotator With Proportional Resize – Flash CS3 – Actionscript 3
- XML based banner rotator – Actionscript 3, Flash CS3
- XML Image Gallery – Actionscript 3, Flash CS3, Tweener
- XML based image gallery – Actionscript 3, Flash CS3, Tweener
- Auto Resize XML Image Gallery – Actionscript 3, Flash CS3, Tweener
- XML Based Zoom Gallery – Flash, Actionscript 2, FuseKit
Menus & Buttons
Utilities
- MP3 Player – XML based – Flash CS3, Actionscript 3, Tweener
- Image Panning on Mouse Move – Actionscript 3 – Flash CS3
- Scrollbar with easing – Actionscript 3 – Tweener – Flash CS3
- XML graph like Google Analytics – Actionscript 3, Flash CS3
- XML based MP3 Player Streaming Compact – Actionscript 3 – Flash CS3
- Events Calendar – XML based – Actionscript 3, Flash CS3, Tweener
- 3D Windows that rotate when you drag them – Papervision 3D 2, Actionscript 3, Flash
- XML based news bubble – Actionscript 3 – Flash – Tweener
- Magnifying glass zoom – Flash, Actionscript 2
- Interactive Snow with OOP Actionscript 2

Source file is in FLASH CS3 format. If you wish it in a previous version then go ahead with the purchase and send me an email.