I can add children (canvas with an image) fine by explicity setting the width and height of the canvas. Then i can align the children in the centre of the canvas.
However if i specify a different size of canvas when adding a new child all the previosuly added children become unaligned.
So is there any way to resize the children of a viewstack? Or does anyone have any other solutions?
here is my add child code:
var tmpchild:Canvas = new Canvas();
//These can't be changed without un aligning other children already present in the viewstack
var tmpimage:Image = new Image();
tmpchild.verticalCenter = 0;