¿Necesita ayuda para la forma de bucle de las imágenes a través de XML en el panel de desplazamiento

  • tharnge
  • Born
  • Born
  • No Avatar
  • Registrado: Dic 22, 2007
  • Mensajes: 1
  • Status: Offline

Nota Diciembre 22nd, 2007, 7:38 am

¡Hola,

Soy novato para el flash y el identificador muy agradecidos si me.Here ayudar a nadie es mi problem.Id como para crear imágenes a través de XML en el desplazamiento vertical panel.Id como para mostrar cuatro imágenes en el stage.Its desplazarse todo el tiempo y cuando el ratón es de vuelco, su justo rollover.U saber el usuario puede detener cuando el ratón se rollover.Maybe su gusto un carousel.And cuando el ratón se despliegue, sus formas curvas o desplazarse hacia arriba y hacia abajo again.My problema es que no saben cómo las imágenes de bucle. ¿Puede alguien ayudarme a salir de it.Sorry apprecite this.Much para mi Inglés.
Código: [ Select ]
y_middle = Stage.height/2;
tn_group.tn._visible = false;
tn_group.setMask( tn_area );
tn_alpha_default = 70;



for( var i = 0; i < photo_thumbnail.length; i++ )
{
    tn_group.tn.duplicateMovieClip("tn"+i, i);
    
    tn_group["tn"+i].tn_pic.loadMovie( filepath +photo_thumbnail[i] );
    tn_group["tn"+i]._x = tn._x;
    tn_group["tn"+i]._y = i * 100;
    tn_group["tn"+i].tn_pic._alpha = tn_alpha_default;
    tn_group["tn"+i].tn_no = i;
    
    tn_group["tn"+i].tn_button.onRollOver = function()
    {
        this._parent.tn_pic._alpha = 100;
    }
    tn_group["tn"+i].tn_button.onRollOut = function()
    {
        
        this._parent.tn_pic._alpha = tn_alpha_default;
    
    
        
        
        
    }
    
        
    
}

onEnterFrame = function()
{
    x_mouse = _xmouse;
    y_mouse = _ymouse;
    
    if( x_mouse > tn_group._x - 10 and x_mouse < tn_group._x + tn_group._width + 10 )
    {
        y_speed = -(y_mouse - y_middle ) /20;

        if( y_mouse > y_middle )
        {
            
            
            
            if( tn_group._y > tn_area._height - tn_group._height + tn_area._y )
                tn_group._y+=y_speed;
        }
        else
        {
            if( tn_group._y < tn_area._y )
                tn_group._y+=y_speed;
        }
    }
}
  1. y_middle = Stage.height/2;
  2. tn_group.tn._visible = false;
  3. tn_group.setMask( tn_area );
  4. tn_alpha_default = 70;
  5. for( var i = 0; i < photo_thumbnail.length; i++ )
  6. {
  7.     tn_group.tn.duplicateMovieClip("tn"+i, i);
  8.     
  9.     tn_group["tn"+i].tn_pic.loadMovie( filepath +photo_thumbnail[i] );
  10.     tn_group["tn"+i]._x = tn._x;
  11.     tn_group["tn"+i]._y = i * 100;
  12.     tn_group["tn"+i].tn_pic._alpha = tn_alpha_default;
  13.     tn_group["tn"+i].tn_no = i;
  14.     
  15.     tn_group["tn"+i].tn_button.onRollOver = function()
  16.     {
  17.         this._parent.tn_pic._alpha = 100;
  18.     }
  19.     tn_group["tn"+i].tn_button.onRollOut = function()
  20.     {
  21.         
  22.         this._parent.tn_pic._alpha = tn_alpha_default;
  23.     
  24.     
  25.         
  26.         
  27.         
  28.     }
  29.     
  30.         
  31.     
  32. }
  33. onEnterFrame = function()
  34. {
  35.     x_mouse = _xmouse;
  36.     y_mouse = _ymouse;
  37.     
  38.     if( x_mouse > tn_group._x - 10 and x_mouse < tn_group._x + tn_group._width + 10 )
  39.     {
  40.         y_speed = -(y_mouse - y_middle ) /20;
  41.         if( y_mouse > y_middle )
  42.         {
  43.             
  44.             
  45.             
  46.             if( tn_group._y > tn_area._height - tn_group._height + tn_area._y )
  47.                 tn_group._y+=y_speed;
  48.         }
  49.         else
  50.         {
  51.             if( tn_group._y < tn_area._y )
  52.                 tn_group._y+=y_speed;
  53.         }
  54.     }
  55. }
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Diciembre 22nd, 2007, 7:38 am

Publicar Información

  • Total de mensajes en este tema: 1 mensaje
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 30 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC