5 Replies Latest reply on Jul 9, 2011 7:20 AM by Ned Murphy

    Image Smoothing for Jpeg in UILoader

    themikesalter

      Hi all,

         I haven't been able to find a way to apply image smoothing to JPEGs being loaded in my UILoader.  I've got this setup:

       

      fwd.addEventListener(MouseEvent.CLICK, nextImage);

       

      var imageNumber:Number = 1;

       

      function checkNumber():void{

      fwd.visible=true;

      back.visible=true;

       

      if(imageNumber==5){

      trace(imageNumber);

         fwd.visible = false;

      }

                if(imageNumber==1){

        trace(imageNumber);

        back.visible = false;

      }

      }

      checkNumber();

       

      function nextImage(evtObj:MouseEvent):void

      {

      trace ("nextImage");

      imageNumber++;

      smallimageloader.source = "images/1980s/books/image0"+imageNumber+".jpg";

      checkNumber();

      }

       

       

      back.addEventListener(MouseEvent.CLICK, backImage);

       

      function backImage(evtObj:MouseEvent):void{

       

      imageNumber--;

      smallimageloader.source = "images/1980s/books/image0"+imageNumber+".jpg";

      checkNumber();

      }

       

       

      All of the data I've found for smoothing refers to loaders loading .jpgs to Bitmap containers; but I can't imagine there is NO WAY to just add smoothing to these jpgs. 

       

      Any help would be greatly appreciated... I've got this code in a lot of places (30+ galleries), so it would be insanely helpful to be able to adapt/write on this code, rather than having to rewrite EVERYTHING!

       

       

      Thanks very much,

      Mike