Que tal compañeros,
¿Como puedo aplicar efectos, por ejemplo alpha al pasar por encima de cualquier imagen generada dinámicamente desde un XML?
He provado en esta película pero nada, sigue sin funcionar
onSelfEvent (load){
include "mc_tween2_oct_21_2008.sm2";
var productos = new XML();
productos.ignoreWhite = true;
var record = 0;
var total = 0;
var current = 0;
productos.onLoad = function(success) {
if (success) {
newsItem = this.firstChild.childNodes;
pic1=90
x= 30; // inicializo coordenada x para poder devolverme
y= 170; //inicializo coordenada y
for (i=1; i<=pic1; i++) {
box = box.duplicateMovieClip("mc"+i, i);
_root["mc"+i]._x = x;
_root["mc"+i]._y = y;
if (i%15==0){ //if i es multiplo de 3 es decir 3,6,9
x=30; //inicializo x de nuevo, es decir me devuelvo
y+=box._height+55; //me muevo hacia abajo
} else { // sino, i es alguno de estos valores 1,2,4,5,7,8
x+=box._width+55; // muevo x solamente
box.ID = newsItem[i].attributes.id_producto;
box.link = "detalle_producto.php?id_producto="+newsItem[i].attributes.id_producto;
box.desc = newsItem[i].attributes.nombre;
famili = newsItem[i].attributes.familia;
box.loadMovie("/files/"+newsItem[i].attributes.imgmini);
this.familiatext.onPress = function() {
getURL("detalle_producto.php?id_producto=");
};
box.onRollOver = function(){
this.oldtext_f = this.familiatext.text;
this.familiatext.text = this.famili;
this.oldtext_p = this.productotext.text;
this.productotext.text = this.desc;
};
box.onRollOut = function(){
this.familiatext.text = this.oldtext_f;
this.productotext.text = this.oldtext_p;
};
box.dropShadowTo(0, 45, 0xff0000, 0.5, 5, 5, 1, 5, false, false, false);
box.onRollOver = function() {
box.dropShadowTo(10, 45, 0x0000ff, 1, 20, 20, 1, 5, false, false, false, 2);
box.resizeTo(120,120,2,"easeoutelastic");
};
box.onRollOut = function() {
box.dropShadowTo(0, 45, 0xff0000, 0.5, 5, 5, 1, 5, false, false, false, 2);
box.resizeTo(100,100,2,"easeoutelastic");
};
}
}
}
};
productos.load("send_xml_productos.php");
}
onFrame (130) {
stop();
}