On 08.04.10, In Actionscript 3.0, by admin
[UPDATE] : here is a good tutorial
Got from a google result while i was searching for proportional scaling in as3 for an office project. really simple and reusable.
function scale_uniform(photo:MovieClip) {
photo.width = stage.stageWidth;
photo.height = stage.stageHeight;
( photo.scaleX > photo.scaleY ) ? photo.scaleY = photo.scaleX : photo.scaleX = photo.scaleY;
}
Related posts:






Leave Your Response