Ciao Ragazzi in un documento ho uno scroll di testo che funziona perfettamente.
Non riesco a capire perche se copio e incollo tutti i componenti di questo scroll di testo con relativo codice ac in un nuovo documento, questo non funziona più.
In un fotogramma della root ho questo codice:
//Top is how far the button is placed from the top of the stage.
top=350;
bottom=645;
//slide is the imaginary verticle line on which the button slides
slide = 971;
//Factor is a decimal which represents scale. With these settings,
//every factor of 1.0 shows 16 screens, plus the original for 17 total.
factor=2.25;
//This next line shows the acceleration at which the display starts
//and how long it takes to stop. 3 is a good number for this one!
ease=5;
Nella prima clip CCONTACT che racchiude il testo da scrollare ho questo codice:
onClipEvent (enterFrame) {
C=(getProperty("_root.scroll",_y)-(_root.top))*(_root.factor);
newC = oldC - (C+oldC)/(_root.ease);
setProperty("_root.ccontact.charts",_y,newC);
oldC=newC;
}
Dentro questa clip chiamata CCONTACT ho la clip chiamata CHARTS da scrollare
Sul disegno dello scroll con nome SCROLL ho questo codice:
on (press) {
startDrag(this, false, _root.slide, _root.top, _root.slide, _root.bottom);
}
on (release, releaseOutside) {
stopDrag();
}
AIUTO VI PREGO...
Dire che urgente è poco.
Grazie a tutti in anticipo

Rispondi quotando

forse ho capito.