Settaggio freccie di scorrimento per filmato

banalik

Nuovo Utente
16 Giu 2004
22
0
0
utenti.lycos.it
Ho realizzato una barra di scorrimento per un clip filmato.
Per chi volesse vederlo

http://www.banalik.mrw.it/
'skip intro' per le due intro
e poi dal menu sceglire 'Portfolio'.

Con lo scroller non ci sono problemi.
Se invece faccio scorrere con le frecce
la scorrimento arriva fino ad un certo punto
e poi si ferma.
Dal codice non riesco a trovare quale sia il valore da cambiare.
Qualcuno può aiutarmi?

Questo è il codice AS all'interno dell'istanza dello scroll:

this.startScroll = function(active, type) { // declare the startScroll() method
if (active) { // if the up, down, or middle scroller are pressed
this.type = type; // set the type variable on the scrollBar instance
if (type != "mid") { // if the middle scroller is NOT pressed
this.onEnterFrame = function() { // define an onEnterFrame() method
if (type == "up") { // if the up (left) button is clicked
if(target._x <= target.startX-increment){ // then check to see if the current X position of target is less than its starting point (minus the increment that's going to be added)
target._x += increment; // if it is less, then add the increment to the X position of target
} else { // otherwise
target._x = target.startX; // set the X position of target back to its starting point
}
} else if (type == "down") { // otherwise,if the down (right) button is clicked
if(target._x >= target.endX+increment){ // then check to see if the current X position of target is greater than its ending point (plus the increment that's going to be added)
target._x -= increment; // if it is greater, then subtract the increment from the X position of target
} else { // otherwise
target._x = target.endX; // set the X position of target to its ending position
}
}
updateScroller("arrow"); // update the position of the middle scroller
};
} else { // otherwise, if the middle scroller is pressed
this.onMouseMove = function() { // establish an onMouseMove() method
updateScroller("mid"); // update the position of the middle scroller and content
updateAfterEvent(); // refresh the stage
};
}
} else { // if the up, down, or middle buttons are released
this.onEnterFrame = null; // remove the onEnterFrame() method
this.onMouseMove = null; // remove the onMouseMove() method
}
};
function updateScroller(type) { // define the updateScroller() function
var a = scroller._y; // distance traveled by scroller
var b = 59; // total length of scrolling area
var c = target.rangeX; // total span of target clip
var d = target.startX; // offset position of target clip
var e = target._x; // current position of the target clip
if (type == "mid") { // if the middle scroller is engaged
target._x = (c*(a/b))+d; // then set the X position of target to the result of our equation
} else { // otherwise, if the arrow buttons are engaged
scroller._y = b*((e-d)/c); // then set the Y position of the middle scroller to this result
}
}

// this .as file establishes movieWidth and movieHeight (in pixels)
#include "getMovieSize.as"

increment = 10; // this value (in pixels) will be added or subtracted with each click of the up or down arrows, respectively
target = _parent.content; // target MovieClip object
target.startX = (target._width/3.0); // starting position (offset) of target clip
target.endX = movieWidth-(target._width/2.2); // ending position of target clip
target.rangeX = target.endX - target.startX; // total span of target clip
target._x = target.startX; // set the target clip to its starting position
 
Discussioni simili
Autore Titolo Forum Risposte Data
V settaggio camera SRICAM SP 007 IP Cam e Videosorveglianza 2
L Settaggio parametri per invio email Ip Cam Sricam IP Cam e Videosorveglianza 13
lucarpenter Settaggio invio mail allarme IP camera P2P IP Cam e Videosorveglianza 9
C Settaggio splashpage HTML HTML e CSS 5
radioButton [risolto] Settaggio campo tabella Database in uscita. PHP 7
F Problemi di settaggio Php per mail in locale PHP 3
Z Settaggio IIS Web Server 2
M settaggio risoluzione Webdesign e Grafica 6
D [HTML] scorrimento dopo un'aggiunta di dati HTML e CSS 5
W [MS Access] Barre di scorrimento su maschere MS Access 0
A [Javascript] [CSS] elenco affiancato per evitare scorrimento pagina Javascript 4
Mer556 [Javascript] IMMAGINI A SCORRIMENTO, ANTEPRIMA 3 Javascript 1
G Scorrimento immagini nel tag section Javascript 12
S Problema scorrimento DIV Javascript 6
S Problema scorrimento DIV senza scrollbar HTML e CSS 4
asevenx plugin slider scorrimento immagini WordPress 2
N Scorrimento automatico TAB Javascript 5
K Script scorrimento notizie Javascript 2
A scorrimento all'interno database mysql riportando dati su form (tipo Dataset) Ajax 5
filippino Eliminare le barre scorrimento HTML e CSS 1
F come si rileva lo scorrimento del mouse in alto o in basso? Javascript 5
S DIV con scorrimento mouse HTML e CSS 1
Danyb82 Scorrimento immagine che si sviluppa orizontalmente jQuery 3
A Estrarre solo un certo numero di record e scorrimento pagine PHP 9
P Scorrimento array-pagine PHP 0
A codice html al posto delle immagini in una finestra di scorrimento Javascript 0
M Scorrimento solo di una parte di pagina - dreamweaver cs3 Webdesign e Grafica 1
M Scorrimento solo di una parte di pagina - dreamweaver cs3 HTML e CSS 0
A scorrimento orizzontale HTML e CSS 2
B Script scorrimento orizzontale immagini linkabili - scorrimento al click su un < o > Javascript 0
borgo italia barre scorrimento colorate HTML e CSS 7
P problema di scorrimento PHP 10
S menù laterale che segue lo scorrimento della pagina Javascript 6
G creare immagini a scorrimento, però sbaglio e mi si sovrappongono..aiutatemi Flash 1
R Creare pulsanti di scorrimento in flash e altre informazioni Flash 0
borgo italia scorrimento notizie Javascript 0
P scorrimento verticale notizie e col passaggio mouse si ferma Javascript 4
C scorrimento panoramica: qualità filmato Flash 2
Nyl Css - Barre di scorrimento colorate HTML e CSS 9
T barre di scorrimento HTML e CSS 2
B barra di scorrimento in tabella HTML e CSS 1
D Scorrimento pagina con javascript Javascript 0
C Script per lo scorrimento delle immagini Javascript 0
E pulsante di scorrimento Javascript Javascript 0
M Piccole finestrelle con barra di scorrimento HTML e CSS 1
A Colorare le barrette di scorrimento HTML e CSS 4
coteaz problema con iframe e con barre di scorrimento Javascript 3
B Larghezza pagina web / barra scorrimento impazzita? HTML e CSS 0
Firespit Barra di scorrimento in una tabella HTML e CSS 3
D barra scorrimento IFrame HTML e CSS 2

Discussioni simili