4822 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Interviewed on an Envato blog
  • Made it to the Authors' Hall of Fame
+8 more
digitalscience says

Ok so say you have a piece of paper that’s 200cm x 200cm… and on that piece of paper there is a square drawn which is 50cm big… what is the percentage scale needed to enlarge the paper so the drawn square is 200 cm big.

Hope this makes sense :D

3787 posts Community Moderator
  • Helps us moderate the forums
  • Contributed a tutorial on Tuts+
  • Located in Netherlands
  • Made it to the Authors' Hall of Fame
+9 more
Joost Moderator says

400%. You’re scaling the sides by a factor 4.

4822 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Interviewed on an Envato blog
  • Made it to the Authors' Hall of Fame
+8 more
digitalscience says

ok but what is the formula :) hmm why does it seem so simple, am I retarded?

32 posts
  • Has sold $1+ on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 1 year
  • Located in United Kingdom
simonwarner says

Your just working out a percentage of the scale factor – so in this case the formula would be:

50/200×100 = 0.4×100 = 400%

Hope this makes sense! :)

28 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+4 more
ClientEngage says

200/50 = 4 = 400% I suppose? :-)

4822 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Interviewed on an Envato blog
  • Made it to the Authors' Hall of Fame
+8 more
digitalscience says

hmmmm…. ya this doesn’t quite work though…

ok so say you have a Flash object which is 100% scale and the height is 400… now inside is a smaller object which is say 200 high… what is formula to scale the large object, so the smaller block appears as 400 pixels on screen.

_global.zoomScale = (small_obj._height/400)*100 <-- this gives me 50% (this just makes it smaller)

_global.zoomScale = ((small_obj._height/400)*100)*100 <-- this gives me 5000% (this just makes it too big)
4822 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Interviewed on an Envato blog
  • Made it to the Authors' Hall of Fame
+8 more
digitalscience says

_global.zoomScale = (400/small_obj._height)*100 ? lol :D Got it :P Thanks guys, one of those moments ;)

3752 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Located in Spain
  • Has sold $125,000+ on Envato Market
  • Helped several times protecting Envato Market against copyright violations
+9 more
pezflash says

Divide by four, not four hundred.
But maybe the problem is that you have a flash object. :P

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 more
duotive says

:))

6144 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+8 more
VF says

hmm… _height reminds me a lot! ;)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by