allora io tramite questo codice
codice:
stop();
System.useCodepage=true;
myText = new LoadVars();
myText.onLoad = function(success) {
if (success) {
testo.html = true;
testo.htmlText = myText.contenuto;
}
};
myText.load("text.txt");
su_btn.onPress = function() {
_root.onEnterFrame = function() {
testo.scroll--;
};
};
su_btn.onRelease = function() {
_root.onEnterFrame = undefined;
};
giu_btn.onPress = function() {
_root.onEnterFrame = function() {
testo.scroll++;
};
};
giu_btn.onRelease = function() {
_root.onEnterFrame = undefined;
};
t = new Object();
t.onKeyDown = function() {
if (Key.isDown(Key.UP)) {
testo.scroll--;
} else if (Key.isDown(Key.DOWN)) {
testo.scroll++;
}
};
Key.addListener(t);
carico del testo da un file txt
funziona benissimo fino a che decido di non coprire con una maschera il livello in cui è contenuta la casella di testo dinamico.
ottengo l'effetto maschera ma non riesco a acricare il testo perchè?
aggiungo che il testo me lo dovrebbe caricarenel frame 3 ma io al frame 3 non ci arrivo prorpio e non c'è nessuno stop!