Hi,
I've got a problem using LiquidArea and ImageLoader simultaneously.
ImageLoader uses a width and height that define a container for the image to load in.
I use it that way :
new ImageLoader(_urlImage, {name:"image"+_slides.length, width:_IMAGE_LARGEUR, height:_IMAGE_HAUTEUR, scaleMode:"proportionalInside", estimatedBytes:100000, onFail:_imageErreurHandler})
_IMAGE_LARGEUR and _IMAGE_HAUTEUR are the max value the image can have
I add an imagesContainer to the stage
_imagesContainer = new Sprite();
addChildAt(_imagesContainer, 0);
I use this _imagesContainer to add imageLoader.content to it
I created a LiquidArea to adjust images for a stage resize
var area:LiquidArea = new LiquidArea(this, 0, 0, _IMAGE_LARGEUR, _IMAGE_HAUTEUR, 0xEEEEEE);
area.preview = true;
area.attach(_imagesContainer);
THE PROBLEM :
On resize, the liquidArea is not taking my Image (that can be a landscape or portait ratio) but the size of the imageLoader dimensions (that are the max one, width and height)
Is there a way for the LiquidArea to take the useful dimensions of my image and not the entire imageLoader container dimensions ?
Thanks.
Florent