Ask a Question related to Macromedia Flash, Design and Development.

  1. #1

    Default Zoom and Pan

    I'm looking for a behaviour that will allow a user to zoom in and out on an
    image and pan it by dragging the mouse in any direction. Is there something
    available, or a sample FLA file I can learn from?

    Thanks


    HC Guest

  2. Similar Questions and Discussions

    1. Can not zoom in
      The previous versions of Flash Player allow web customer to Zoom In or Zoom Out. However, it seems that when people installed Flash 8 player, they...
    2. Zoom Bug?
      InDesign CS 3.01, August patch, Windows 2000 Years ago I adopted the habit of zooming with Ctrl-Spacebar and the mouse to select the area. This...
    3. I want no zoom on my .swf
      Hi there, When you rigth click on flash movies with you're mouse, you get options like- zoom in, zoom out, 100%, show all....... ect. ect. ...
    4. zoom!
      hey, does anyone know how the zoom effect on this site was done in flash? it's really great, you can zoom in and zoom out to your liking. any tips or...
    5. Zoom in or out
      How do we do this with director mx (Please see attachment)? http://webforums.macromedia.com/attachments/bounce.zip
  3. #2

    Default Re: Zoom and Pan

    "HC" wrote:
    > I'm looking for a behaviour that will allow a user to zoom in
    > and out on an image and pan it by dragging the mouse in any
    > direction. Is there something available, or a sample FLA file
    > I can learn from? Thanks
    Fortunately, I have an example online. I'm not very accurate in the
    example. I use the centerpoint of "clipImage" (MovieClip) for the
    zooming center (and not the center of the rectangle masking the image):

    [url]http://birdy1976.com/2004/zoom-image-or-movieclip.html[/url]

    // place this code in the main timeline
    // and associate the functions with buttons:
    function zoomIn() {
    clipImage._xscale *= 1.1;
    clipImage._yscale *= 1.1;
    }
    function zoomOut() {
    clipImage._xscale *= 0.9;
    clipImage._yscale *= 0.9;
    }

    // place this code on "clipImage":
    onClipEvent (load) {
    this.onPress = function() {
    this.startDrag();
    };
    this.onRelease = function() {
    this.stopDrag();
    };
    }

    Best wishes, Martin ;) * [url]http://birdy1976.com/[/url] * ICQ# 237743398


    \Martin Voegeli, vom\ Guest

  4. #3

    Default Re: Zoom and Pan

    Thanks for the help!

    Harv

    ""Martin Voegeli, vom"" <MartinVoegeli@gmx.ch> wrote in message
    news:bup0ma$ka99g$1@ID-169229.news.uni-berlin.de...
    > "HC" wrote:
    > > I'm looking for a behaviour that will allow a user to zoom in
    > > and out on an image and pan it by dragging the mouse in any
    > > direction. Is there something available, or a sample FLA file
    > > I can learn from? Thanks
    >
    > Fortunately, I have an example online. I'm not very accurate in the
    > example. I use the centerpoint of "clipImage" (MovieClip) for the
    > zooming center (and not the center of the rectangle masking the image):
    >
    > [url]http://birdy1976.com/2004/zoom-image-or-movieclip.html[/url]
    >
    > // place this code in the main timeline
    > // and associate the functions with buttons:
    > function zoomIn() {
    > clipImage._xscale *= 1.1;
    > clipImage._yscale *= 1.1;
    > }
    > function zoomOut() {
    > clipImage._xscale *= 0.9;
    > clipImage._yscale *= 0.9;
    > }
    >
    > // place this code on "clipImage":
    > onClipEvent (load) {
    > this.onPress = function() {
    > this.startDrag();
    > };
    > this.onRelease = function() {
    > this.stopDrag();
    > };
    > }
    >
    > Best wishes, Martin ;) * [url]http://birdy1976.com/[/url] * ICQ# 237743398
    >
    >

    HC Guest

  5. #4

    Default zoom and pan

    I'm looking for a quick receipe on zoom and pan buttons? Need it for a map
    with a lot of detail.

    Anker


    Anker Guest

  6. #5

    Default Re: zoom and pan


    have you considered using the magnifying glass idea? it's a lot of fun
    and easier than clicking on pan & zoom buttons all the time.

    try [url]www.flashkit.com[/url] for a few fla's to get you going

    Nex




    On Mon, 5 Apr 2004 10:25:21 +0200, "Anker" <an@rfsf.dk> wrote:
    >I'm looking for a quick receipe on zoom and pan buttons? Need it for a map
    >with a lot of detail.
    >
    >Anker
    >
    Nex Guest

  7. #6

    Default Re: Zoom and Pan

    Is there a way to put limits onto how much it zooms and drags?
    Unregistered Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139