Hi,
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:).

greetz
JC




On 11/1/06, Jon Bennett <[EMAIL PROTECTED]> wrote:

> > So in general to keep a child scaled at 100% independents of its
parents,
> > you need to divide 100% by the result of multiplying all its parent's
scale
> > factors.
> >
> > Eg, to keep e at 100%, you'd scale e to : 1/ (
> > a.scale*b.scale*c.scale*d.scale/100^4)
>
> so My original MC is 744 px wide, and I scale it so it's width is
> 2710, which is a scale of 364%, which means I need to scale my links
> to, umm.......

I've tried:

var intMapScale:Number = mcMap._width / 744; // width = 2710
var btnScale:Number = intMapScale / 100;

that can;t be right though, as it gives me a tiny number, any pointers
as to where I've gone wrong?

Thanks,

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

_______________________________________________
[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

Reply via email to