|
|
|
#1 |
|
Member
Join Date: Jul 2002
Location: London, England
Posts: 46
|
Zoom In/Zoom Out of Picture
What type of animation or action script, do I need use to to zoom in and out of pictures like on this site ......
http://www.electrolyte.co.uk/browser...lyte.asp?sid=9
__________________
Ben |
|
|
|
|
|
#2 |
|
Mod
Join Date: Mar 2002
Location: press the picture...
Posts: 12,312
|
The pictures are probably loaded into empty movieclips and scaled down to thumbnails. Then when you click on them they are repositioned and scaled up using a tween. You need to look into _xscale and _yscale.
__________________
![]() - The right of the People to create Flash movies shall not be infringed. - | www.Flashscript.biz | Help a little girl, Ana, who has cancer. | Flashscript Biz Classes/Components | The new Event design pattern | Clothing for Haiti | |
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2002
Location: London, England
Posts: 46
|
Thanks for the advice. I guess this is a stupid question, but how do I create an empty MovieClip ?
__________________
Ben |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Apr 2006
Posts: 1,059
|
createEmptyMovieClip("EMPTY",depth)
|
|
|
|
|
|
#5 |
|
Mod
Join Date: Mar 2002
Location: press the picture...
Posts: 12,312
|
this.createEmptyMovieClip("mc", this.getNextHighestDepth());
or you just create a new MovieClip and leave it empty. Drag it from the library and give it a unique name.
__________________
![]() - The right of the People to create Flash movies shall not be infringed. - | www.Flashscript.biz | Help a little girl, Ana, who has cancer. | Flashscript Biz Classes/Components | The new Event design pattern | Clothing for Haiti | |
|
|
|
|
|
#6 |
|
rabid_Delineator
Join Date: Dec 2003
Location: Orlando, Florida
Posts: 433
|
it looks to me like they are resizing the actual thumbnal image , resulting in a blurry low res version, as this is happening they are using a movieclip loader to load a full res version of the larger image into a seperate movieclip inside the thumb. Another way to do this would be to load the full res larger image into a movieclip , convert it to bitmap data , draw, clear the intial movieclip, then on scale , run some sort of perlin noise or martix transformation to give the image the pixelated appearance. I would do it the first way though, maybe also using bitmap data with smoothing to true.
|
|
|
|
|
|
#7 |
|
Member
Join Date: Jul 2002
Location: London, England
Posts: 46
|
Thanks to all of you for the advice. I'll try out some of them.
__________________
Ben |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|