PRODUCT
Follow

Summary

We have been unable to force smoothing on dynamic smart image item using an XML data feed.

Please find the Workshop sources attached, the Ad id in the platform is : 11263248.

I already tried a solution i found on the web in the carousel MovieClip / phone_pic_1 / Layer 2, frame 1 :
function smooth(mc:MovieClip)
{
var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true, 0x000000);
mc.attachBitmap(bitmap, 0, “auto”, true);
bitmap.draw(mc);
}

smooth(img_produit_1);

Where the movieclip is redrawn in a BitmapData object in order to use its forcemossthing feature but without success.

Environment

  • Sizmek Flash Workshop

Required information

  • Ad ID

Solution

There are two possible solutions to force smoothing that I know of:

  • Try the following code:

    var bmp:Bitmap;
    var request:URLRequest = new URLRequest(“pathToImage”);
    var picLoader:Loader = new Loader();
    picLoader.load(request);
    picLoader.addEventListener(Event.COMPLETE, onImageLoaded);

    function onImageLoaded(evt:Event):void
    {
    picLoader.removeEventListener(Event.COMPLETE, onImageLoaded);
    bmp = picLoader.content as Bitmap;
    bmp.smoothing = true;
    picLoader.unload();
    addChild(bmp);
    }

  • Force smoothing for Workshop (AS3):

    Go to folder: C:\Users\Your.UserName\AppData\Local\Adobe\Flash CS6\en_US\Configuration\Classes\Eyeblaster ActionScript 3.0\eyeblaster\data

    Edit file: SmartVersioning.as

    Find the function “private function SVhandleResize(e:Event)” and insert “e.currentTarget.content.smoothing = true;” as the first line of the function.

    For AS2 version, go to folder:
    C:\Users\Your.UserName\AppData\Local\Adobe\Flash CS6\en_US\Configuration\Classes\eyeblaster\data

    Find the function “private function SVhandleResize(mc:MovieClip, resizeData:Object)” and insert “mc.forceSmoothing = true;” as the first line of the function.

Case Examples

Ticket IDSummary
ID of the ticket Summary of the issue and solution used for this ticket.
ID of the ticket Summary of the issue and solution used for this ticket.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments