yeah my example was downscaling, while you are upscaling:).
var intMapScale:Number = mcMap._width / 744; // width = 2710 // 364% (3,64)
so btnScale is 100/intMapScale.
Imagine mcMap._width had been 1000 and original was 500, you'd have 1000/500
= 200%
so btnScale 100/200% is 50.
Note about the percentages, they make for easy errors. Multiplying/dividing
by one hundred too many, tends to give awesome, though wrong, results:).
thanks Hans, have totally sussed it now!
wicked.
jon
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com