Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/01/2012, 13:53
kidart
 
Fecha de Ingreso: junio-2010
Mensajes: 108
Antigüedad: 13 años, 11 meses
Puntos: 2
Respuesta: Calidad imagenes

hola, hay un codigo para cuando tenes sitios que se redimensionan. lo que hace es resamplear la imagen una vez que se carga, al tamaño actual del navegador.

El unico contra es que tenes que cargar la imagen externa:
Código actionscript:
Ver original
  1. _global.smoothImageLoad = function(imgURL, targetMovie) {
  2.     var i=0
  3.     do { i++ } while (eval("_root.smoothImageLoadTemp"+i) != undefined)
  4.     tmc = _root.createEmptyMovieClip("smoothImageLoadTemp"+i, _root.getNextHighestDepth())
  5.     tmc.createEmptyMovieClip("ti", tmc.getNextHighestDepth())
  6.     tmc.tm = targetMovie
  7.     with(tmc) {
  8.         tmcl = new MovieClipLoader()
  9.         tmcl.onLoadComplete = function() {
  10.             ti.onEnterFrame = function() {
  11.                 pixelData = new flash.display.BitmapData(ti._width, ti._height);
  12.                 pixelData.draw(ti);
  13.                 tm.attachBitmap(pixelData, 1, true, true);
  14.                 tm.smoothImageLoadComplete()
  15.                 removeMovieClip(ti._parent)
  16.             }
  17.         }
  18.         tmcl.loadClip(imgURL, tmc.ti)
  19.     }
  20. }
  21.  
  22. mymc.smoothImageLoadComplete = function() {
  23.     trace("yeah baby yeah!!!")
  24. }
  25.  
  26. smoothImageLoad("fotos/lkbk_baja/8.jpg", contenedor_lookbook_8)