all clipping content does is set the scrollRect of the contentPane. There's no reason why you can't set the scrollRect of the container itself unless the border of the canvas goes beyond the bounds of the canvas. Just set the scrollRect of the canvas equal to a new Rectangle(0,0,canvas.width, canvas.height).
- Dan On 2/4/07, Michael Schmalle <[EMAIL PROTECTED]> wrote:
Hi, Yes you are losing the ability to clip content using rawChildren. Cliping occurs with a single content child or contentPane with multiple content children. You will need to create a content raw child that will hold your textfields. Then create a FlexSprite mask and set the mask property of the content pane that holds your textfields. Then in layoutChrome() in your component that holds the raw children, position the mask using view metrics. There is some stuff I am omitting because if you choose this route, your textfield layout algorithm is going to have to change to the content pane. which changes things drastically in your case. Peace, Mike On 2/4/07, superstella_uk <[EMAIL PROTECTED]> wrote: > > Im adding many TextFields to a Canvas via rawChildren.addChild > (its a long story why I dont use Label, but essentially Im doing it > for better performance). > > I also added a ScrollBar and am responding to that by repositioning > the TextFields in code. Its all working very smoothly, but I cant seem > to find a way to clip the raw children to the bounds of the container. > > Is there a way to do this, or do I sacrifice all features like this > when using raw children? > If so, is there any way I can clip a sprite? > > Thanks > > -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.

