Re: [Flashcoders] Resizing a background image only.And keeping aspectratio.

2008-02-03 Thread Vlado Krempl
Thanks for the reply, Cheers, from Sydney, Australia. - Original Message - From: Pedro Kostelec [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Sunday, February 03, 2008 10:29 PM Subject: Re: [Flashcoders] Resizing a background image only.And keeping

Re: [Flashcoders] Resizing a background image only.And keeping aspectratio.

2008-02-03 Thread Vlado Krempl
Thanks for the reply, will give it a go. Cheers, from Sydney, Australia. - Original Message - From: Kenneth Kawamoto [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Sunday, February 03, 2008 11:03 PM Subject: Re: [Flashcoders] Resizing a background image

Re: [Flashcoders] Resizing a background image only.And keeping aspectratio.

2008-02-03 Thread Vlado Krempl
://www.zinkmag.com Cheers, vlado - Original Message - From: Kenneth Kawamoto [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Sunday, February 03, 2008 11:03 PM Subject: Re: [Flashcoders] Resizing a background image only.And keeping aspectratio. It could

Re: [Flashcoders] Resizing a background image only.And keeping aspectratio.

2008-02-03 Thread Ivan Dembicki
Hello oops private function onAddedToStage(e:Event=null):void { onStageResize(); } private function onStageResize(e:Event=null):void { picture_mc.width = stage.stageWidth; picture_mc.height = stage.stageHeight; picture_mc.scaleX = picture_mc.scaleY = Math.max (picture_mc.scaleX,

Re: [Flashcoders] Resizing a background image only.And keeping aspectratio.

2008-02-03 Thread Pedro Kostelec
PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Sunday, February 03, 2008 11:03 PM Subject: Re: [Flashcoders] Resizing a background image only.And keeping aspectratio. It could be cleaner, but here we go: private function onStageResize(e:Event):void { var

Re: [Flashcoders] Resizing a background image only.And keeping aspectratio.

2008-02-03 Thread Ivan Dembicki
Hello private function onAddedToStage(e:Event=null):void { private function onStageResize(); } private function onStageResize(e:Event=null):void { picture_mc.width = stage.stageWidth; picture_mc.height = stage.stageHeight; picture_mc.scaleX = picture_mc.scaleY = Math.max

Re: [Flashcoders] Resizing a background image only.And keeping aspectratio.

2008-02-03 Thread Ivan Dembicki
Hello oops again :) private function onAddedToStage(e:Event):void { onStageResize(); } private function onStageResize(e:Event=null):void { picture_mc.width = stage.stageWidth; picture_mc.height = stage.stageHeight; picture_mc.scaleX = picture_mc.scaleY = Math.min(picture_mc.scaleX,

Re: [Flashcoders] Resizing a background image only.And keeping aspectratio.

2008-02-03 Thread Kenneth Kawamoto
flashcoders@chattyfig.figleaf.com Sent: Sunday, February 03, 2008 11:03 PM Subject: Re: [Flashcoders] Resizing a background image only.And keeping aspectratio. It could be cleaner, but here we go: private function onStageResize(e:Event):void { var picRatio:Number = picture_mc.width

Re: [Flashcoders] Resizing a background image only.And keeping aspectratio.

2008-02-03 Thread Kenneth Kawamoto
]; Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, February 04, 2008 3:14 AM Subject: Re: [Flashcoders] Resizing a background image only.And keeping aspectratio. Vlado, The site you're referring is slightly different, i.e. my code shows ALL regions of the image while maintaining