On 5/4/06, Mark Wales <[EMAIL PROTECTED]> wrote:

> I have a UIComponent inside a Canvas where I place Sprites, draw lines,
> etc. The UIComponent's dimensions are larger than the Canvas and right
> now I have the scrollbar policy set to "on" or "auto". However, when I
> scale the UIComponent (using scaleX and scaleY) the items drawn on the
> UIComponent exceed the boundary of that component and appear across the
> entire screen. If I further manipulating the scale of the UIComponent a
> few times, it ultimately re-acquires its boundary and is then well-behaved.
>
> Is this a refresh problem, am I changing the scale in a way I should
> not, or is there something else going on?

Not sure what you mean by "re-acquires its boundary". If you have a
standalone example, that'll help clear it up.

The 'scaleX' and 'scaleY' properties affect the width and height of a
UIComponent, so, as far as its parent is concerned, it's not different
from setting its width and height explicitly.

So the following two lines have the same effect on the parent's
measurement and layout:

foo.width = foo.width * 2;
foo.scaleX = 2;


--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to