Groups | Blog | Home
all groups > flash (macromedia) > october 2003 >

flash (macromedia) : Vertical text scroller


marinasaumell
10/6/2003 11:22:36 PM
I need to create a vertical scroll text without
buttons.
You could see the referring url as sample.
If anyone could help me, it´ll be great.
Thanks,

Marina




Referring URLs
http://www.scriptocean.com/flashscroll/



marinasaumell
10/7/2003 1:44:53 AM
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

Marina

urami_
10/7/2003 7:48:10 AM

[quoted text, click to view]

do you need it to scroll just like the one ?
Does it have at least slider bar ?
Does it scroll and stop or does not rewind and run
from first line again ?



Regards

urami_*



<lsym>

There's no place like 127.0.0.1

urami_
10/7/2003 12:10:31 PM

[quoted text, click to view]

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

marinasaumell
10/7/2003 12:27:16 PM
Hi Urami,

I´ve tried the second solution but I´m having some kind of trouble because it doesn´t work.
I´d like you to see the .fla file.
Is there any possibility I could send it to you?

Thanks

Marina


urami_
10/7/2003 8:34:15 PM

[quoted text, click to view]

I'll upload in maybe 30 minutes or so , I'm on the laptop and cellophane connection
right now and pay per bandwidths plus have bandwidth limit so once back home
i'll let you know .




Regards

urami_*



<lsym>

There's no place like 127.0.0.1

urami_
10/7/2003 9:52:35 PM

[quoted text, click to view]


http://www.flashfugitive.com/cgi-bin/scroll_duplicate_Marina.swf
d/l
AddThis Social Bookmark Button