Have some properties in Canvas:-

origCanvasWidth = 320, origCanvasHeight=240 , xScaleFactor=1, yScaleFactor=1

When canvas is resized, calculate the x/y scale factors..

xScaleFactor = newCanvasWidth/origCanvasWidth;
yScaleFactor = newCanvasHeight/origCanvasHeight;

Now resize/move  all children..

You might have to override some method (updateDisplayList ?)...

This would allow children resize/move to new size/position..

-abdul



On 8/24/06, Dan Rossi <[EMAIL PROTECTED]> wrote:

Hi there, i am trying to work out how to auto scale display objects inside a canvas if the canvas size changes, ie i have a set of labels/form items inside a canvas component. This component is then inside my main app set to 100% when the main app resizes i was hoping to also have the labels/formitem within the canvas resize ddynamically but without changing its layout. I designed it for 320x240 but if i reduce it to 240x180 scrollbars show up.

I was also hoping to find out how to auto scale my application depending on the size set in the flash object plugin in the browser, any ideaS ?


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to