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
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
2 matches
Mail list logo