Hi,
I am trying to implement a liquid GUI.
There is a “_pictureContainer” as Sprite at level 1 and am loading a picture as “Bitmap” as its child.
There is a onResize function as usual, fired when the stage is resized.
The code looks like that:
var sw:Number = stage.stageWidth;
var sh:Number = stage.stageHeight;
_header.width = _footer.width = _pictureContainer.width = sw;
_pictureContainer.height = sh;
_footer.y = sh - fh;
_pictureContainer.getChildAt(0).height = sh;
_pictureContainer.getChildAt(0).scaleX = _pictureContainer.getChildAt(0).scaleY;
The image in the container should resize and fit the height and keep its proportion by the way. But takes automatically the size of the container(parent).
how can I handle resizing seperately?