ciao ragazzi ho un problema.
ho una gallery che carico esternamente.
ho aggiunto un livello e ho messo una porta che si apre + un suono.
il filmato funziona perfettamente, solo che quando ritorno sulla foto 1
mi ricompare la porta e il suono. ho provato a spostare i frame ma poi mi impazzisce il filmato. Mi sapete aiutare?
Ciao diletta
function updateFrame (inc) {
// send slides to new frame
newFrame = _root.vuoto._currentframe + inc;
_root.vuoto.gotoAndStop(newFrame);
updateStatus();
if (_root.vuoto._currentframe == 1) {
vuoto.control.prevBtn.gotoAndStop(2);
} else {
vuoto.control.prevBtn.gotoAndStop(1);
}
if (_root.vuoto._currentframe == _root.vuoto._totalframes) {
vuoto.control.nextBtn.gotoAndStop(2);
} else {
vuoto.control.nextBtn.gotoAndStop(1);
}
}
function updateStatus () {
_root.vuoto.statusField = _root.vuoto._currentframe + " of " + _root.vuoto._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.vuoto._currentframe == _root.vuoto._totalframes) {
_root.vuoto.gotoAndStop(1);
} else {
_root.vuoto.nextFrame();
}
autoplayInit();
}
}
}
function hideControls () {
vuoto.control.nextBtn.gotoAndStop(2);
vuoto.control.prevBtn.gotoAndStop(2);
}
updateFrame();
autoplayStatus = 0;