resizing a scaled sprite to original size?

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default resizing a scaled sprite to original size?

    hi everyone,

    this is probably really simple but i can't fathom the answer, had a look through the forum too and can't find a soloution, so any help will be greatly appreciated! ^_^

    i have a sprite on stage that has the 'move, rotate and scale' behaviour attached. it is a large chart with lots of small info crammed on it so the user can zoom in to get a better look. when the user exits that section and enters it again the sprite is back in its original position and size.

    what is required now is that while the chart is zoomed in/moved about onscreen the user can click on a button that resets the chart to its original size and position. so far i've not had any luck doing this.

    any suggestions will be great, thanks!!

    graeme ^_^



    scoremultimedia webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. File Size Grows When Graphic is Scaled to 50%
      I an using Illustrator CS (11.0). The first ai file created was a total of 63,769K (full of data and detail garnered from 2 eps files). The file...
    2. New pages are not same size as original
      I have a fairly large document that has been scanned in by another person however they missed one or two pages so I am having to import these from...
    3. how to print in original size
      Hi there, on http://msdn.microsoft.com/vstudio/productinfo/posters/posterfiles/Windows_Forms_Classes_X0849461pst_a_OL.pdf you will see a big...
    4. Percentage of original size
      In PageMaker, if one places a graphic and then resizes (transforms) it, the Control Palette displays the new percentages, ie 58% horizontal and 67%...
    5. Resizing AVI's with original file properties
      I need to resize an AVI in my Projector (dynamically at run-time) to the exact dimensions of the original video. (I'm talking about the...
  3. #2

    Default Re: resizing a scaled sprite to original size?

    In your beginSprite handler, store the original rect of the sprite in a property. Then just set sprite(x).rectto that rect to reset.

    If this dosn't work for rotated sprites, try using quads (see the lingo dictionary).

    Otherwise you should be able to manually store the original values of the sprite's rotation, rect, loc etc.

    hth

    johnAq



    johnAq webforumsuser@macromedia.com Guest

  4. #3

    Default Re: resizing a scaled sprite to original size?

    Even easier:

    sprite(x).puppet = 0

    will return it to its original state.

    --


    Dave
    [url]http://www.blurredistinction.com/director[/url]


    Dave Mennenoh Guest

  5. #4

    Default Re: resizing a scaled sprite to original size?

    thanks johnAq and dave for both your suggestions!

    they're just what i was after, simple after all!

    thanks again guys ^_^


    scoremultimedia webforumsuser@macromedia.com 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