Skip to content

Instantly share code, notes, and snippets.

@kylefox kylefox/gist:246050
Created Dec 1, 2009

What would you like to do?
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;
// 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
You can’t perform that action at this time.