5198 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Achieved the monthly Community Superstar Award
  • Interviewed on an Envato blog
+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

3868 posts Community Moderator
  • Helps us moderate the forums
  • Taught a course or tutorial on Tuts+
  • Located in Netherlands
  • Has been part of the Envato Community for over 6 years
+9 more
Joost
Moderator
says

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

5198 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Achieved the monthly Community Superstar Award
  • Interviewed on an Envato blog
+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 2 years
  • 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! :)

30 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? :-)

5198 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Achieved the monthly Community Superstar Award
  • Interviewed on an Envato blog
+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)
5198 posts Interactive Design
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Achieved the monthly Community Superstar Award
  • Interviewed on an Envato blog
+8 more
digitalscience
says

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

3757 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
+6 more
duotive
says

:))

6222 posts
  • Had an item that was trending
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
+10 more
VF
says

hmm… _height reminds me a lot! ;)

by
by
by
by
by
by