Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/07/2009, 11:04
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 18 años, 10 meses
Puntos: 51
Respuesta: Problemas para Duplicar clip

no se si esta bien pero tiene que emplear la funcion duplicate o atachmovie


Código PHP:
x = 275;
y = 3;
ancho = 50;
alto = 60;
miXML = new XML();
miXML.ignoreWhite = true;
miXML.onLoad = function(succes) {
    if (
succes) {
        for (var 
i = 0; i<this.firstChild.childNodes.length; i++) {
            
small = this.firstChild.childNodes[i].attributes.id;
            
_root.createEmptyMovieClip("small"+i,i+100);
            
_global.numImg = i;

            
//Este es el boton que quiero duplicar
            
var newBoton=mcputo.duplicateMovieClip("BTonn-"+i,this.getNextHighestDepth());
            
newBoton.onRelease = function() {
                
_global.imag = _global.numImg;
                
_parent.mcbig.gotoAndStop(2);
            };
            
newBoton._y=100*i //esto es para que lo veas sino aparecen uno sobre otro 
            //Aqui termina el boton que quiero duplicar

            
prev = _root["small"+i];
            
prev.loadMovie(small);

            
prev._x = x;
            
prev._y = y;
            
y += alto;

        }
    }
};
miXML.load("home.xml"); 
__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft