Another problem here may be the quality property on the object/embed tag. If
it is auto high it might for some cases switch to non-smoothing to benefit
the performance. This will change if you set the property to high.


Greetz Erik

On 2/3/08, Muzak <[EMAIL PROTECTED]> wrote:
>
> Check the example in the docs.
> You need to create a copy of the original (loaded) image, add it to the
> display list and remove the (original) loaded image
>
>
> http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Bitmap.html
>
> Here's an example of loading an image and displaying a copy next to it:
>
> import flash.display.Loader;
> import flash.net.URLRequest;
> import flash.display.Bitmap;
>
> var loader:Loader;
> var req:URLRequest;
> var orig_mc:MovieClip;
> var copy_mc:MovieClip;
>
> function loaderCompleteHandler(evt:Event) {
> var ldr:Loader = evt.currentTarget.loader as Loader;
> var origImg:Bitmap = (ldr.content as Bitmap)
> origImg.width = 200;
> origImg.height = 150;
>
> var image:Bitmap = new Bitmap(origImg.bitmapData, "auto", true);
> image.width = 200;
> image.height = 150;
> copy_mc.addChild(image);
> }
>
> loader = new Loader();
> req = new URLRequest("2.jpg");
> loader.load(req);
> loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
> loaderCompleteHandler);
>
> orig_mc = new MovieClip();
> orig_mc.addChild(loader);
> addChild(orig_mc);
>
> copy_mc = new MovieClip();
> copy_mc.x = 210;
> addChild(copy_mc);
>
>
> regards,
> Muzak
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to