Proportional Scaling as3

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

IMAGE PANNING AS3 IN BOTH DIRECTIONS, Free XML Scroll List

Related Posts

Popular Posts


Leave Your Response

* Name, Email, Comment are Required

Hire me


Welcome to flashmadblog. Here you can find useful flash templates and source files at low cost. Featured product: Papervision 3D Coming Soon Template

Shopping Cart

Your shopping cart is empty

Visit the shop

  • layla grace, college of the ozarks, colleen larose, ...
    layla grace college of the ozarks colleen larose derek anderson obama fishing ban myrtle corbin amber hanley andrew kwasniewski lindsay lohan etrade ben roethlisberger pictures biggie smalls lyrics jarvis green ben roethlisberger drink like a champion sec tournament 2010 bracket jason and molly s wedding pictures stephanie birkitt kathy taft pringles recall […]

Product Advertising