var alpha_interval:Number = setInterval(fadeImage, 50, img_mc);
function fadeImage(target_mc:MovieClip): Void {
target_mc._alpha -=5;
if(target_mc._alpha <=0) {
target_mc._visible = false;
clearInterval(alpha_interval);
}
};
pero yo lo quiero al revés. O sea, que comienze con un alpha=0 y progresivamente llegue al 100%.
Intenté poniendo esto, pero no resulta:
var alpha_interval:Number = setInterval(revealImage, 50, img_mc);
function revealImage(target_mc:MovieClip): Void {
target_mc._alpha =0;
if(target_mc._alpha >=1) {
target_mc._visible = true;
clearInterval(alpha_interval);
}
};
otro código, pero tampoco me funciona:
img_mc.onEnterFrame = function() {
img_mc._alpha = 0;
if(img_mc._alpha >=1) {
img_mc._visible = true;
}
};
