Hi,
shouldnt be too tricky, set the actual x and y scale to the minimum of the
preferred x and y scale.

Might be wrong about this, but shouldnt it be something like:
eg:
var prefXScale:Number = //get preferred x scale eg based on x mouse
var prefYScale:Number = //get preferred y scale eg based on y mouse

var constrainedScale:Number = Math.min(prefXScale, prefYScale);

myClip._xscale = myClip._yscale = constrainedScale;

greetz
JC




On 3/26/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:


Should have pointed out, the resizing will happen by the user dragging
anchor points on the corners of the images.

Ta.

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: 26 March 2007 13:08
To: Flashcoders
Subject: Image resizer that maintains ratio


Any examples out there?

I've got as far as resizing a user supplied image and am about to work on
the ratio remaining fixed. Just thought I'd throw this out there as I
think
it may be tricky.

Ta.

Adrian

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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