Ciao a tutti,
il mio problema è questo ho un testo che viene preso da una pagina .asp che può essere lungo o meno lungo a seconda delle esigenze, ho messo delle frecce che dovrebbero comparire solo se il testo e più lungo del box di visualizzazione e dovrebbero non comparire se questo è più corto......
Ma delle volte funzionano e delle altre no!
come posso modificare il codice?????![]()
testo.html = true;
testo.htmlText = _root.corpo;
fscommand("allowscale", false);
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++;
}
};
if (testo.maxscroll<11) {
giu_btn._visible = false;
su_btn._visible = false;
}
if (testo.maxscroll>11) {
giu_btn._visible = true;
su_btn._visible = true;
}
Key.addListener(t);
Aiuto![]()