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
ok but what is the formula hmm why does it seem so simple, am I retarded?
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!
200/50 = 4 = 400% I suppose?
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)
_global.zoomScale = (400/small_obj._height)*100 ? lol Got it Thanks guys, one of those moments
Divide by four, not four hundred.
But maybe the problem is that you have a flash object.