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
Printable View
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
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.
Thanks for the advice. I guess this is a stupid question, but how do I create an empty MovieClip ?
createEmptyMovieClip("EMPTY",depth)
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.
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.
Thanks to all of you for the advice. I'll try out some of them.