Re: [flexcoders] Drawing on skinned component

2009-02-20 Thread Laurent Cozic
I have tried using a Sprite as the topmost child and drawing on it I think that's the way to do it. To make sure that your  sprite is always on top, just add addChild(yourSprite) at the end of the updateDisplayList function. If the sprite is not on the display list, it's going to be added to

Re: [flexcoders] Drawing on skinned component

2009-02-20 Thread Alex Militaru
Thank you for your answer Laurent. I was doing something similar, but more complicated: calling addChild(sprite) in createChildren() and then setting the index of the sprite to numChildren - 1 in updateDisplayList. Apparently the answer is to wrap the sprite in a UIComponent and adding that