4356 posts Love & Light
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 7-8 years
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Interviewed on the Envato Notes blog
  • South Africa
+3 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

3649 posts Community Moderator
  • Has been a member for 5-6 years
  • Contributed a Tutorial to a Tuts+ Site
  • Netherlands
  • Community Moderator
  • Microlancer Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
+4 more
Joost Volunteer moderator says

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

4356 posts Love & Light
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 7-8 years
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Interviewed on the Envato Notes blog
  • South Africa
+3 more
digitalscience says

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

32 posts
  • Exclusive Author
  • Sold between 1 and 100 dollars
  • Has been a member for 0-1 years
  • 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! :)

26 posts
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Referred between 10 and 49 users
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
  • United Kingdom
ClientEngage says

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

4356 posts Love & Light
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 7-8 years
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Interviewed on the Envato Notes blog
  • South Africa
+3 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)
4356 posts Love & Light
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 7-8 years
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Interviewed on the Envato Notes blog
  • South Africa
+3 more
digitalscience says

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

3744 posts
  • Won a Competition
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Spain
  • Referred between 200 and 499 users
+5 more
pezflash says

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

3007 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 100 and 199 users
+2 more
duotive says

:))

5542 posts
  • Exclusive Author
  • Author had a File in an Envato Bundle
  • Elite Author
  • Has been a member for 5-6 years
  • Sold between 100 000 and 250 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • India
+3 more
VF says

hmm… _height reminds me a lot! ;)

by
by
by
by
by
by