Error extraño en Flash
Hola amigos, necesito vuestra ayuda!
He realizado una web en donde el fondo es una imagen reescalable y los contenidos van centrados. Todo eso en flash.
Pero al estar un rato la web parada, el flash da un error. Se crea una especie de linea negra alrededor de la grafica del flash:
http://www.zumografico.com/errorflash.jpg
En la imagen se ve encima con el error y debajo bien.
Despues de investigar me he dado cuenta que es por culpa del reescalado del fondo, pero nose porque?¿?¿
Este es el codigo:
<code>Stage.align = "TL";
Stage.scaleMode = "noScale";
bg.onResize = function() {
var imageAspectRatio = this._width/this._height;
var stageAspectRatio = Stage.width/Stage.height;
if (stageAspectRatio>=imageAspectRatio) {
this._width = Stage.width;
this._height = Stage.width/imageAspectRatio;
} else {
this._height = Stage.height;
this._width = Stage.height*imageAspectRatio;
}
this._x = Stage.width/2;
this._y = Stage.height/2;
};
Stage.addListener(bg);
bg.onResize();
// fadim bg
bg._alpha = 0;
onEnterFrame = function() {
bg._alpha += 5;
}</code>
Alguien le ha pasado este error alguna vez?¿
Gracias !!
Usuario desconocido
si trazas el _alpha veras lo que te ocurre (me parece a mi). Prueba esto:
<code>
onEnterFrame = function()
{
bg._alpha += 5;
trace(bg._alpha);
}
</code>