I have a loader class that loads a png. When that png is finished loading I start scaling the graphic back and forth. It will works fine except the graphic when scaling DOES NOT look smooth. I know how to make Bitmap objects smooth. But the Loader class instance's content property is not a bitmap. so I can't set it to smoothing = true. I need to get it smooth. Any help would be appreciated.
Code:
var loaderSamosa = new Loader();
loaderSamosa.load( new URLRequest( "__assets/pulsing_samosa.png" ) );
loaderSamosa.contentLoaderInfo.addEventListener( Event.COMPLETE, showSamosa );
addChild( loaderSamosa );
private function showSamosa( e:Event ):void {
loaderSamosa.cacheAsBitmap = true;
loaderSamosa.content.cacheAsBitmap = true;
//THIS MAKE THE SAMOSA GRAPHIC GET SMALLER AND LARGER
SpecialAnimations.pulsate( loaderSamosa, .75, true );
}