Originariamente inviato da Tiziano1974
Ciao a tutto il forum!
sono un novellino di flash e sto picchiando con il codice...
ho inserito nel mio filmato due clip filmato con del testo ma vorrei che il testo apparisse come in uno specchio ma non riesco a modificarlo.
se inserisco il seguente codice riesco a far apparire il testo su 2 righe, ma non appena modifico il secondo testo ruotandolo non appare più quando eseguo il test movie?
qualcuno può darmi una mano?
Grazie tiziano
onClipEvent(load) {
// constants
text = "pippo pluto e paperino";
letterSpacing = 16; // how far apart the letters are
startX = 15; // horizontal position of leftmost letter
startY = 50; // vertical position of letters
startScale = 600; // how big the letters start
scaleStep = 50; // how much the letters shrink per frame
startRate = 3; // how often new letters appear
// create all movie clips
for (i=0;i<text.length;i++) {
_parent.attachMovie("Letter","Letter"+i,i);
// fill with letter
_parent["letter"+i].letterText = text.charAt(i);
// start in correct position
_parent["letter"+i]._x = startX + i*letterSpacing;
_parent["letter"+i]._y = startY;
// start at largest size
_parent["letter"+i]._xscale = startScale;
_parent["letter"+i]._yscale = startScale;
// make invisible until needed
_parent["letter"+i]._visible = false
}
// start with first letter
lastLetter = 0;
_parent["letter0"]._visible = true;
frame = 0;
}
onClipEvent(enterFrame) {
// change all letters until last visible one
for(i=0;i<=lastLetter;i++) {
if (_parent["letter"+i]._xscale > 100) {
_parent["letter"+i]._xscale -= scaleStep;
_parent["letter"+i]._yscale -= scaleStep;
}
}
// make one more letter visible, when enough frames have passed
frame++;
if (frame >= startRate) {
frame = 0;
lastLetter++;
_parent["letter"+lastLetter]._visible = true;
}
}