Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/10/2009, 18:18
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: se puede asignar funcion de boton a un mc creado con createMovieClip

seria mas o menos asi

Código PHP:
var PosX:Array = new Array(0, 105, 210, 316, 421, 526, 631);
var 
PosY:Array = new Array(1, 1, 1, 1, 1, 1, 1);
for (var 
i:Number = 0; i<7; i++) {
    var 
thumb_Mct = this.createEmptyMovieClip("thumb"+i, this.getNextHighestDepth());
    
thumb_Mct.createEmptyMovieClip("contenedor", this.getNextHighestDepth());
    
thumb_Mct._x = PosX[i];
    
thumb_Mct._y = PosY[i];
    
thumb_Mct.contenedor.loadMovie("download/mini/mini"+(i+1)+".jpg");
    
DataBoton(thumb_Mct,"http:www.google.co.ve") 
    
}
function 
DataBoton(Mc,Val){
    
Mc.onPress = function() {
         
getURL(Val,"_self")
    };
} 
he depurado un poco el código ya que lo tenias demasiado largo XD
__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft