Hi All,

I have been watching too many peoples asking about various aspect levels for images and videos. Here is a simple demo to show your image/video with different aspect ratio levels.
I hope the aspect ratio list is very tiny like, 3:2, 4:3, 16:9, 1.85:1, 2.39:1.
Here is sample code:
function setAspectRatios() {
var widthR:Number = 2.39;
var hightR:Number = 1;
image_mc._width = Stage.width;
var value = Stage.width;
image_mc._height = Math.round((value/widthR)*hightR);
alignImage();
}
function alignImage() {
var imgh = image_mc._height;
var imgw = image_mc._width;
if (image_mc._height>Stage.height) {
image_mc._height = Stage.height;
difference = imgh-image_mc._height;
image_mc._width = image_mc._width-difference;
} else {
image_mc._width = Stage.width;
difference = imgw-image_mc._width;
image_mc._height = image_mc._height-difference;
}
image_mc._x = Stage.width/2-image_mc._width/2;
image_mc._y = Stage.height/2-image_mc._height/2;
}
setAspectRatios();
So, you can change the widthR and heightR with respect to the desired aspect ratio. The code, i have given is for 2.39:1.

Regards
John