Foros del Web » Creando para Internet » Flash y Actionscript »

Ayuda con Carrusel

Estas en el tema de Ayuda con Carrusel en el foro de Flash y Actionscript en Foros del Web. Hola, estoy trabajando sobre un carrusel y quiero que al pasar el mouse sobre una imagen del carrusel esta se amplie. He modificado un codigo ...
  #1 (permalink)  
Antiguo 11/01/2010, 23:25
 
Fecha de Ingreso: mayo-2007
Mensajes: 24
Antigüedad: 19 años, 5 meses
Puntos: 0
Ayuda con Carrusel

Hola, estoy trabajando sobre un carrusel y quiero que al pasar el mouse sobre una imagen del carrusel esta se amplie. He modificado un codigo que me he bajado pero no consigo que se aumenten las imagenes como quiero. ¿Alguien con alguna idea para conseguirlo? Estoy trabajando sobre Flash CS4 y mi codigo es el siguiente:

Código PHP:
stop();
var 
folder:String = "thumbnails/";    
var 
total:Number;
var 
radiusX:Number = 310;
var 
radiusY:Number = 90;
var 
centerX:Number = 400;
var 
centerY:Number = 150;
var 
speed:Number = 0.005;
tn_group_mc._visible = false;
fm_label.text = ""; fm_url.text = "";

var 
xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
    var 
nodes = this.firstChild.childNodes;
    
total = nodes.length;
    
    for( var 
i=0; i < total; i++)
    {
        var 
t = tn_group_mc.duplicateMovieClip("tn"+i, i);
        
t.angle = i * ((Math.PI*2)/total);
        
t.onEnterFrame = mover;
        
t.tn_mc.inner.loadMovie( folder + nodes[i].attributes.filename );
        
t.tn_reflection_mc.inner.loadMovie( folder + nodes[i].attributes.filename );
        
t.fm_label = nodes[i].attributes.label;
        
t.fm_url = nodes[i].attributes.url;
    
t.fm_button.onRollOver = function() 
   { 
      
fm_label.text = "Title: " + this._parent.fm_label; 
      
info.text = "URL: " + this._parent.fm_url; 
      
this._xscale = 200; 
      
this._yscale = 200; 
   } 
   
t.fm_button.onRollOut = function() 
   { 
      
info.text = ""; fm_label.text = ""; 
      
this._xscale = 100; 
      
this._yscale = 100; 
   } 
        
        
    }
}
xml.load( folder + "flashmo_thumbnails.xml");

function 
mover()
{
    
this._x = Math.cos(this.angle) * radiusX + centerX;
    
this._y = Math.sin(this.angle) * radiusY + centerY;
    var 
s = this._y /(centerY+radiusY);
    
this._xscale = this._yscale = s*100;
    
this.angle += this._parent.speed;
    
this.swapDepths(Math.round(this._xscale) + 100);
}
this.onMouseMove = function()
{
    
speed = (this._xmouse-centerX) * 0.0001;
} 
  #2 (permalink)  
Antiguo 13/01/2010, 10:51
 
Fecha de Ingreso: mayo-2007
Mensajes: 24
Antigüedad: 19 años, 5 meses
Puntos: 0
Respuesta: Ayuda con Carrusel

Bump, no hay nadie que me pueda ayudar?

Etiquetas: carrousel
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:02.