How can I display an image by percent rather than a standard point value?
Say the image is x500 by y800 and I want to display it within a 130x80 box at its proper aspect ratio, how would I go about that?
I used to use:
In a blank frame, then:Code:loadMovie("directory/directory/image.jpg", "emptyclip1");
On the empty mc.Code:onClipEvent (data) { this._width = 130; this._height = 80; }
But that's not gona workthe imaghe distorts to fill the box.
Any advice on how to load a large image and constrain it into that small space with its proper aspect ratio intact would be greatly apreciated!




the imaghe distorts to fill the box.
Reply With Quote