Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/04/2008, 13:43
Arleqin
 
Fecha de Ingreso: abril-2008
Mensajes: 8
Antigüedad: 16 años
Puntos: 0
Pregunta Me pueden ayudar a corregir este código

Hola, soy nueva en flash y no he podido hacer que la marquesina este girando continuamente de derecha izquierda, desplegando un texto que lee de un archivo txt, esto es lo que tengo:

System.useCodepage=true;
loadVariables("tickertext.txt", this);
function scroll()
{
if (primera_vez == undefined){
_root.onEnterFrame = function(){

for (i=0; i<1; i++){
if (tickerBox._x > 330){
x_derecha = 0;
for (j=0; j<1; j++){
if (tickerBox._x < 0){
y_actual = tickerBox._x;
if (y_actual < x_derecha){
x_derecha = y_actual;
}
}
}
tickerBox._x = x_derecha - tickerBox._width + 1;
}
tickerBox._x += 1;
}
}
primera_vez = false;
}
}

function startTicker()
{
tickerBox.html = true;
tickerBox.autoSize = "center";
tickerBox.htmlText = tickertext;
setInterval(scroll, 5);

}
this.onData = startTicker;

Gracias por su ayuda