
Ciao a tutti,
ho creato una maschera che contiene il testo e ho aggiunto un livello "azioni":
altezza_maschera = maschera._height-maschera._y;
altezza_testo = scorrimento._height;
su.onPress = function() {
onEnterFrame = function () {
if (scorrimento._y<maschera._y) {
scorrimento._y += 10;
}
};
};
su.onRelease = function() {
delete onEnterFrame;
};
giu.onPress = function() {
onEnterFrame = function () {
if ((scorrimento._y+altezza_testo)>(maschera._height-10)) {
scorrimento._y -= 10;
}
};
};
giu.onRelease = function() {
delete onEnterFrame;
};
Funziona, ma se aggiungo altro testo, non capisco perchè non me lo visualizza tutto! Come faccio a poter aggiungere il testo in maniera illimitata?!