[flexcoders] Flex, updateDisplayList and clipping.

Wednesday, December 07, 2011

 

Hi.


I have a component that uses the Graphics primitives in the updateDisplayList. It does lots of text outputting, so it uses the technique of having a single UITextField, getting the bitmap data and bitmapFill-ing it to the canvas. Adding multiple first-class components to the canvas is just way, way too slow to be viable.

This all works great. However, we now want to draw other things - things that are not so easy to clip - eg: Circles!

I was surprised to see that Graphics offers no clipping. Is the only way around this to draw the component to something like a Sprite, then to bitmapFill that to the screen doing manual clipping calculations ?

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

0 comments:

Post a Comment