Salve a tutti, ho un grande problema, attraverso il seguente codice ho del testo scorrevole.
System.useCodepage = true;
//
var caricaTesto_lv:LoadVars = new LoadVars();
caricaTesto_lv.load("news2.txt");
caricaTesto_lv.onData = function(src:String) {
if (src != undefined) {
testo_txt.htmlText = src;
}
};
//
var cursore:Boolean;
var frecce:Number;
var valore:Number = 0;
//Valore x il campo di testo
var scrolla = 1;
this.onEnterFrame = function() {
// gestione dot
if (cursore) {
valore = (dot_mc._y-26)*100/88;
//dot_mc._y-26; 26 è valore corrente della Y dell'istanza dot_mc
testo_txt.scroll = Math.round(valore*testo_txt.maxscroll/100);
}
// gestione frecce
if (frecce) {
scrolla = Math.min(Math.max(scrolla+frecce, 1), testo_txt.maxscroll);
testo_txt.scroll = scrolla;
//dot_mc._y = 26+Math.round((scrolla-1)*88/(testo_txt.maxscroll-1));
}
};
//
//Action Pulsanti
su_btn.onRollOver = function() {
frecce = -1;
};
su_btn.onRollOut = function() {
frecce = 0;
};
giu_btn.onRollOver = function() {
frecce = 1;
};
giu_btn.onRollOut = function() {
frecce = 0;
};
//
all'interno del movieclip scrolling_page ho inserito il testo e dei pulsantoi che richiamano altri swf esterni; il mio problema è che non vedo tutto il testo che ho scritto ma fino ad un certo punto, ovvero io quando provo il filmato, clicco sulla freccia giu il testo scorre fino a tre quarti e poi non si vede la restante parte di testo che ovviamente esiste. Non so se sono stata chiara o se manca qualcosa per farvi capire. Grazie

Rispondi quotando