Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/01/2008, 10:52
Avatar de ganCT
ganCT
 
Fecha de Ingreso: enero-2008
Ubicación: Vigo
Mensajes: 78
Antigüedad: 16 años, 3 meses
Puntos: 0
Re: Problema realmente tonto, por que no funciona?

setInterval(mover(150), 3);

Para enviar parametros en setInterval:

setInterval("mover", 3, 150);

3 son los milisegundos
150 el parametro enviado a la funcion mover()




Para utilizar el setInterval:

var numero:Number;
var velocidad:Number = 1.1;

function mover () {
fondo._x = diario._x-((diario._x-fondo._x)/velocidad);
fondo._y = diario._y-((diario._y-fondo._y)/velocidad);
}

diario.onRollOver = function () {
numero = setInterval(_root, "mover", 300);
}


--------xxxxxx--------


Pero quieres algo asi?:

diario.onRollOver = function () {
onEnterFrame = function () {
fondo._x = fondo._x+((diario._x-fondo._x)/11);
fondo._y = fondo._y+((diario._y-fondo._y)/11);
}
}

Última edición por ganCT; 17/01/2008 a las 11:09