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]<mailto:[email protected]> softphone : sip:[email protected]<mailto:sip%[email protected]> téléphone portable : +33601 822 056

