PROPORTIONAL SCALING AS3.0

[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;
}

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Related posts:

  1. IMAGE PANNING AS3 IN BOTH DIRECTIONS

Related Posts

Popular Posts


Leave Your Response

* Name, Email, Comment are Required


Google Live Chat

Call me at

_____________________________ +91 9995040559

Add me on Skype

 - Tinku Tharasing: