Drag large images updated: now with zoom
April 16th, 2009
Hi again, now i will show an update of the post Drag large images inside de box. Now the class dragIt have the option to use zoom in and out the content of the box.
Well, the primary function of the class that is drag the content inside the mask box continue the same, and you can see how work into the post: Drag large images inside de box. For the new feature you need re-download the class using the SVN address or download the sample on final of the this post.
So, i added a simple public function for this class to add the zoom in and zoom out movieclip into the dragIt object, named addZoom, and work so simple like show bellow:
1 2 3 4 | var drag:dragIt = new dragIt(); drag.drag(content,maskImage,true); drag.addZoom(more,less); addChild(drag); |
Its really simple, the line 3 you will set the instance name of the zoom in and zoom out moviclip and when you click in one of these clips the content movieclip will resize more or less depending the button that you clicked.
Other thing added into the dragIt class is the possibility to resize the image on start the class. If you see the line 2 of the code sample and compare with the same line in Drag large images inside de box post will see that the ultimate argument is true, by default this is set false but if you want load the new content and resize it for the width and height proportion only put the true as you latest argument.
Any questions comment the post and download the sample to test it.
Download: Drag image with zoom (383)





April 16th, 2009 at 11:22
[...] with zoom VA:F [1.1.7_509]please wait…Rating: 0.0/5 (0 votes cast) This article was found on . Click here to visit the full article on the original website.Hi again, now i will show an update of the post Drag large images inside de box. Now the class [...]
April 20th, 2009 at 14:08
[...] stage or other things when you need create nicelly thumbnails, i used this class into the drag large images with zoom post, when the picture is loaded i put the code to contract the image size into the mask moviclip. [...]
May 2nd, 2009 at 10:03
nice! ur code is easy to read! keep up the good work!
May 2nd, 2009 at 15:56
Thanks for and continue reading Lizz XD
See u soon