Created
December 1, 2009 04:24
-
-
Save kylefox/246050 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function onImageLoaded ( e : Event ) : void | |
{ | |
// get bitmap from loader; | |
var image : Bitmap = Bitmap( m_loader.content ); | |
// get bitmap data from loaded image; | |
var bmd : BitmapData = image.bitmapData; | |
// create image from bitmap data; | |
m_image = new Bitmap( bmd ); | |
// turn image smoothing on; | |
m_image.smoothing = true; | |
// set bitmap size & position; | |
onResize(); | |
// add image to stage; | |
addChild( m_image ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment