Código ActionScript :
_root.printInit = function(){
j=1;
for(i=0;_root.productos['nombre'+i]!=undefined;i++){
if(_root.productos['inicio'+i] == 1){
_root.sc_home.createEmptyMovieClip("perchaCont"+j,100+j);
_root.sc_home['perchaCont'+j].loadMovie(_root.productos['imagen_inicio'+i]);
_root.sc_home['perchaCont'+j].id = i;
switch(j){
case 1:
_root.sc_home['perchaCont'+j]._x = 198;
_root.sc_home['perchaCont'+j]._y = -407;
_root.sc_home['perchaCont'+j]._rotation = -20;
break;
case 2:
_root.sc_home['perchaCont'+j]._x = 95;
_root.sc_home['perchaCont'+j]._y = -320;
_root.sc_home['perchaCont'+j]._rotation = -20;
break;
case 3:
_root.sc_home['perchaCont'+j]._x = -10;
_root.sc_home['perchaCont'+j]._y = -273;
_root.sc_home['perchaCont'+j]._rotation = -20;
break;
}
[b]_root.sc_home['perchaCont'+j].onRelease = function (){
trace("click!");
_root.hideSecciones();
_root.showSeccion('sc_productos');
_root.tipoProd = _root.productos['tipo'+this.id];
_root.sc_productos.setProd(false);
_root.printProd(this.id);
}[/b]
j++;
}
}
}Alguien sabe que esta pasando? Gracias
