viewStack.addChild adding multiple child and only the last child is visible!

1.9k Views Asked by At
var viewStack:ViewStack = new ViewStack();
viewStack.percentWidth = 100;
viewStack.percentHeight = 100;
viewStack.addChild(canVas1);
viewStack.addChild(canVas2);
viewStack.addChild(canVas3);
lb = new LinkBar();
lb.dataProvider=viewStack;

Its only displaying canVas3 contents not canVas1 and canVas2

thanks

1

There are 1 best solutions below

6
On

I think that's what it's supposed to do. It just puts components one on top of the other like a deck of cards, with the topmost (last added) being visible. Check this out.