[quoted text, click to view] > I need the text to scroll just like the one on the referring website, without any scroll buttons or slider bars.
> I´d like the text to scroll vertically without stoping and the first line continue with the last one.
> Thanks, regards
Hi Marina
convert your text into movie clip , right click it - ACTIONS or click it and hit F9 key.
Paste in
onClipEvent (enterFrame) {
_y = _y-2;
if (_y<=-10) {
_y = 500;
}
}
You will have to work out the details , this scroll movie clip up and rewind once the movie clip center point reach the -10 Y coordinate . Center
point is the dot in the
middle of the instance.
Than it will move it back to Y 500 cords .
The 2 is the speed of scroll .
You may like to type some text than repeat at the end to make the jump
look very smooth .
change the coordinates based on text length to meet your needs.
Here is second solution , more complex but it will automatically assure
transition. In this solution we duplicate movie clip with text few times
and scroll it one by one to obtain endless loop.
Convert your text into movie clip and give it instance name IMG , place it into movie clip
and name that clip MC , than to that MC add the following action :
onClipEvent (load) {
Yheight = _root.mc._height;
for (i=1; i<4; i++) {
img.duplicateMovieClip("img"+i, i);
}
img._visible=0;
}
onClipEvent (enterFrame) {
Ypos = _root.mc.img1._y;
k = Ypos-_root.mc._y/200;
_root.mc.img1._y = k;
_root.mc.img2._y = k+Yheight;
_root.mc.img3._y = k-Yheight;
if ((Ypos<-Yheight) or (Ypos>Yheight)) {
_root.mc.img1._y = 0;
_root.mc.img2._y = Yheight;
_root.mc.img3._y = -Yheight;
}
}
The black rectangle represent theoretical MASK which would cover it up .
Press the button to see with or w/o mask
http://www.flashfugitive.com/cgi-bin/YTextScroll.swf Regards
urami_*
<lsym>
There's no place like 127.0.0.1