Because there are times where the image won't be in the image tag and in a movieclip and need to scale it there also.
On 7/5/05, Manish Jethani <[EMAIL PROTECTED]> wrote: > On 7/5/05, Omar Ramos <[EMAIL PROTECTED]> wrote: > > yeah I seen it, thanks for the reply. I need to do it manualy in some > > cases like when I create the handles for the user to drag them and > > resize the image. > > Have you tried just setting the property? > > <?xml version="1.0"?> > <mx:Application > xmlns:mx="http://www.macromedia.com/2003/mxml" > xmlns="*"> > <mx:Button label="w+" click="img.width += 10" /> > <mx:Button label="h+" click="img.height += 10" /> > <mx:Image id="img" source="b.jpg" maintainAspectRatio="true" /> > </mx:Application> > > If the image size changes it always maintains the size as per the > aspect ratio. Why would you write extra code to do this? > > > -- > Flexcoders Mailing List > FAQ: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > ________________________________ > YAHOO! GROUPS LINKS > > Visit your group "flexcoders" on the web. > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > ________________________________ > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

