Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/03/2004, 17:00
juanchilo
 
Fecha de Ingreso: marzo-2004
Ubicación: Córdoba
Mensajes: 239
Antigüedad: 20 años, 2 meses
Puntos: 0
si tienes razon perdon

perdon amigo tienes razon, no publique el codigo completo jeje
ahora si va completito. Pero dejame decirte algo, YA HE SOLUCIONADO EL TEMA DE LSO COMENTARIOS.
Mi problema ahora es que necesito importar mediante attachmovie MC distintos para cadauno de los botones que presiono en la escena y es aqui que se me complica con el prototype porque a un MC de los botones le asigno determinado parametros se me duplican para todos. En definitiva tengo cinco botones mediante prototype y si le realizo attachmovie a uno automaticamente se le asigna a los demas.
Pero yo quiero que cada boton traiga attach diferentes.
Algo me dijeron de que se puede hacer algo para que el prototype adopte parametros diferentes para cada boton. Solo que no se con que.
Yo probe con swith pero no me funciona para nada bien. :-p
help me pleace

este es el codigo:
Código PHP:
CustomClip = function (cliptargetLeveltag) { 
    
this.clip clip
    
this.clip.name clip._name
    
this.clip.0.78
    
this.clip.0.3
    
this.clip.ts 100
    
this.clip.targetLevel targetLevel
    
this.clip.onRollOver this.customRollOver
    
this.clip.onRollOut this.customRollOut
    
this.clip.reset this.reset
    
this.clip.onEnterFrame this.myScale
    
this.clip.onRelease this.clip.onReleaseOutside=this.customRelease
    
// Asigno al clip el parametro TAG 
    
this.clip.tag tag
}; 
CustomClip.prototype.customRollOver = function() { 
    
this.swapDepths(++this.targetLevel.depth); 
    
this.ts 150
    
// Si no tiene tag que no aparezca la caja 
    
if (this.tag != undefined) { 
        
tag _root.attachMovie("tag""tag"1000); 
        
tag._x _root._xmouse
        
tag._y _root._ymouse
        
tag.startDrag(false); 
        
// tx es la instancia de texto dentro del MC tag 
        
tag.tx.text this.tag
    } 
}; 
CustomClip.prototype.customRollOut = function() { 
    
this.ts 100
    
// Eliminamos el tag 
    
tag.removeMovieClip(); 
}; 
CustomClip.prototype.customDragOut = function() { 
    
this.myDragOut(); 
}; 
CustomClip.prototype.reset = function() { 
    
stopDrag(); 
    
this.ts 100
}; 
[
B]//  ////// aqui esta el tema de los attachmovie. Yo probe con swith pero creo que no funsiona asi.[/B] 
switch (CustomClip.prototype.customRelease) { 
case 
this.a1 
    
nada.attachMovie("della1""dell_a"1); 
    break; 
case 
this.a2 
    
nada.attachMovie("della2""dell_b"2); 
    break; 
case 
this.a3 
    
nada.attachMovie("della1""dell_a"3); 
    break; 

CustomClip.prototype.myScale = function() { 
    
this.scale += (this.vt=this.vt*this.f+(this.ts-this._xscale)*this.r); 
    
this._xscale this._yscale=this.scale
}; 
//////////////////////////////////////////// 
// 
depth 1
// Agregamos un parametro más que te sirve de Tag para cada Clip. 
btn1 = new CustomClip(a1this"contactos"); 
btn2 = new CustomClip(a2this"ayuda"); 
btn3 = new CustomClip(a3this"sugerencias"); 
btn4 = new CustomClip(a4this); 
btn5 = new CustomClip(a5this); 
stop();