Well, actually the contentHolder (said as a uicomponent) is a class
extending "uicomponent" and overriding "measure()", which is using
"getBounds()".
Also drawing is done into sprites within the "contentHolder".
The problem is drawings arent clipped till a certain "distance of moving",
which corresponds I think to the orgin of sprite within the contentHolder
coordinates space. But the origin of sprite is not the left most graphics
element drawn into the sprite.

thomas
---
http://www.web-attitude.fr/
msn : [email protected]
softphone : sip:[email protected] <sip%[email protected]>
téléphone portable : +33601 822 056


2009/8/10 Alex Harui <[email protected]>

>
>
>  If you draw into a UIComponent, the UIComponent needs to report the
> correct width/height for the Canvas to clip it properly.  UIComponent
> doesn’t do that automatically so you’d need to create a custom component.
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. <http://www.adobe.com/>
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *thomas parquier
> *Sent:* Saturday, August 08, 2009 10:24 AM
> *To:* [email protected]
> *Subject:* [flexcoders] drawings dont get clipped by holder
>
>
>
>
>
> Hi,
>
> I writing an app which can draw shapes on sprites within a uicomponent
> (contentHolder), which holds some other canvas components.
> This contentHolder can be move within a canvas (drawingCanvas) which has
> "clipContent=true".
> But clipping seems erratic : shapes dont seem to be taken into account
> especially at left hand side of drawingCanvas when some graphics are
> negative in sprites coordinates space.
>
> thomas
> ---
> http://www.web-attitude.fr/
> msn : [email protected]
> softphone : sip:[email protected] <sip%[email protected]>
> téléphone portable : +33601 822 056
>
>   
>

Reply via email to