Código ActionScript :
import mx.transitions.*;
import mx.transitions.easing.*;
//importe esto para agregar movimiento de transicion en pixeles disueltos.--
delay = 3000;
function loadXML(loaded)
{
   if (loaded)
   {
      xmlNode = this.firstChild;
      image = [];
      description = [];
      total = xmlNode.childNodes.length;
      for (i = 0; i < total; i++)
      {
         image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
         description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
      }
      firstImage();
   }
   else
   {
      content = "file not loaded!";
   }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
p = 0;
this.onEnterFrame = function()
{
   filesize = picture.getBytesTotal();
   loaded = picture.getBytesLoaded();
   preloader._visible = true;
   if (loaded != filesize)
   {
      preloader.preload_bar._xscale = 100 * loaded / filesize;
   }
   else
   {
      preloader._visible = false;
      if (picture._alpha < 100)
      {
         picture._alpha += 10;
      }
   }
};
function nextImage()
{
   var ranNum = Math.floor(Math.random() * image.length);
   trace(image[ranNum]);
   if (p < (total - 1))
   {
      p++;
      if (loaded == filesize)
      {
         picture._alpha = 0;
         picture.loadMovie(image[ranNum],1);
         slideshow();
      }
   }
}
function prevImage()
{
   var ranNum = Math.floor(Math.random() * image.length);
   trace(image[ranNum]);
   if (p > 0)
   {
      p--;
      picture._alpha = 0;
      picture.loadMovie(image[ranNum],1);
   }
}
function firstImage()
{
   var ranNum = Math.floor(Math.random() * image.length);
   trace(image[ranNum]);
   if (loaded == filesize)
   {
      picture._alpha = 0;
      picture.loadMovie(image[ranNum],1);
      slideshow();
   }
}
function slideshow()
{
   myInterval = setInterval(pause_slideshow, delay);
   function pause_slideshow()
   {
      clearInterval(myInterval);
      if (p == (total - 1))
      {
         p = 0;
         firstImage();
      }
      else
      {
         nextImage();
      }
   }
}Esto funciona super bien. pero con el movimiento de Slideshow, que debe ir.
Pero quiero aemás agregar un movimiento de PixelDissolved, con Transition.Manager.star
Pero he intentado colocarlo en varias líneas y no me resulta todavía.
TransitionManager.start(picture,{type:PixelDissolve, direction:Transition.IN, duration:1, easing:None.easeNone, xSections:50, ySections:50}); <este es el código>
Alguien sabe como debe ir y en que linea??.. gracias. Talves lo estoy colocando mal. muchas gracias.
Mientras espero seguire intentando.


 
    
  
			 
  
 