[flexcoders] Drawing on skinned component

2009-02-20 Thread civilu007
Hello, I'm trying to draw something on a component skinned using a Flash skin, but nothing is drawn (or better said, I don't see anything because the drawing is done beneath the skin). My code looks something like public class TestButton extends Button { public function TestButton() {

Re: [flexcoders] Drawing on skinned component

2009-02-20 Thread Laurent Cozic
] Drawing on skinned component To: flexcoders@yahoogroups.com Date: Friday, February 20, 2009, 8:53 AM Hello, I'm trying to draw something on a component skinned using a Flash skin, but nothing is drawn (or better said, I don't see anything because the drawing is done

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