Ver Mensaje Individual
  #6 (permalink)  
Antiguo 03/10/2007, 08:48
Porfavor
 
Fecha de Ingreso: octubre-2007
Mensajes: 27
Antigüedad: 16 años, 6 meses
Puntos: 0
Re: Problema con galeria de imágenes AYUDA!!

Otravez yo... como no consigo aclararme, he pegado aqui el código de los botones, a ver si alguien sabe decirme dónde está el problema...



function updateFrame (inc) {
// send slides to new frame
newFrame = _root._currentFrame + inc;
_root.gotoAndStop(newFrame);

updateStatus();

if (_root._currentFrame == 1) {
up.gotoAndStop(2);
} else {
up.gotoAndStop(1);
}
if (_root._currentFrame == _root._totalFrames) {
bax.gotoAndStop(2);
} else {
bax.gotoAndStop(1);
}
}

function updateStatus () {
_root.statusField = _root._currentFrame + " de " + _root._totalFrames;
}

function autoplayInit () {
startTime = getTimer();
hideControls();
updateStatus();
}

function autoplay () {
if (autoplayStatus != 0) {
// get the current time and elapsed time
curTime = getTimer();
elapsedTime = curTime-startTime;

// update timer indicator
indicatorFrame = int(4/(delay/(elapsedTime/1000)));
indicator.gotoAndStop(indicatorFrame+1);

// if delay time if met, goto next photo
if (elapsedTime >= (delay*1000)) {
if (_root._currentframe == _root._totalframes) {
_root.gotoAndStop(1);
} else {
_root.nextFrame();
}
autoplayInit();
}
}
}

function hideControls () {
bax.gotoAndStop(2);
up.gotoAndStop(2);
}

updateFrame();
autoplayStatus = 0;