Somewhere I am making a stupied mistake or I am missing something.
I have a component to which I have added a FlexSprite as a child.
Lets call it "content".
Its is there as I can draw in it and see the drawing...
Then I add a TextInput as a child of this "content" sprite but I cant
see it...
The code seems ok as if I just change one line and make the TextInput
added my component (the parent of the sprite) then it appears.
i.e. (psuedo code)
class MyDumb extends UIComponent{
override protected function createChildren(){
var content=new FlexSprite();
.addChild(content);
content.visible=true;
//cant see the TI
content.addChild(new TextInput());
//can see the TI
addChild(new TextInput());
}
... function updateDisplayList(){
.....do some drawing in content.... can be seen!
}
}
What is my dumb mistake?
tks