A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Zoom In/Zoom Out of Picture

  1. #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. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    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. -

  3. #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. #4
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,059
    createEmptyMovieClip("EMPTY",depth)

  5. #5
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    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. -

  6. #6
    rabid_Delineator AttackRabbit's Avatar
    Join Date
    Dec 2003
    Location
    Orlando, Florida
    Posts
    481
    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. #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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center