Ask a Question related to Macromedia Director Basics, Design and Development.
-
scoremultimedia webforumsuser@macromedia.com #1
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
-
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... -
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... -
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... -
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%... -
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... -
johnAq webforumsuser@macromedia.com #2
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
-
Dave Mennenoh #3
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
-
scoremultimedia webforumsuser@macromedia.com #4
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



Reply With Quote

