salve, ho un campo dinamico che carica un testo da database. Quando metto le due frecce per lo scroll verticale ed orizzontale, però, il testo non si muove. Posto il codice per sapere se qualcuno sa suggerirmi il perchè di questa situazione:
Codice PHP:caricamento = new LoadVars();
caricamento.onLoad = function() {
camporosa.htmlText = caricamento.testo;
su.onPress = function() {
this.onEnterFrame = function() {
scr = _root.camporosa.scroll;
if (scr>1) {
_root.camporosa.scroll = scr-1;
}
};
};
su.onRelease = function() {
delete this.onEnterFrame;
};
giu.onPress = function() {
this.onEnterFrame = function() {
scr = _root.camporosa.scroll;
if (scr<_root.camporosa.maxscroll) {
_root.camporosa.scroll = scr+1;
} else {
delete this.onEnterFrame;
}
};
};
giu.onRelease = function() {
delete this.onEnterFrame;
};
};
caricamento.sendAndLoad("RANGERS/scheda_flash.asp?id=311", caricamento, "POST");

Rispondi quotando
