I’m using the graphics class to object to draw on BorderContainer. Some of the drawings fall off the components borders, but they are still drawn on screen. Is there any way to clip the area drawn with graphics?
What’s the recommend component to draw on, anyway? I need the simplest thing that can I can draw on in Flex and have the ability to add Labels to as well.
On restricting drawing to a given region, try using the mask property (every subclass of
DisplayObjecthas it). It was created to do exactly what you’re asking about.On the simplest IVisualElementContainer you can draw on, try using a Group.