Ciao a tutti
ho come sempre un problema.......................!
ho un text box che utilizzo per scrollare del testo html.
Vorrei far scomparire i pulsanti di spostamento (frecce) quando il testo non supera le dimensione della text box.
I nomi delle frecce sono su_btn e giu_btn.
Questo sotto è il codice che utilizzo per lo scroll.
Qualcuno può darmi delle indicazioni??![]()
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++;
}
};
Key.addListener(t);
GRAZIE!:master: