PDA

View Full Version : REAL simple scrolling text


Narrowfeather
12-24-2001, 06:30 AM
Don't laugh, but I'm trying to create an extremely simple scrolling text object and all the tutes are too fancy. I want a single line "banner" of text to run automatically across the bottom of the stage horizontally in a loop. It is too much text to animate as an object. I don't need any buttons or scrollbars or controls. I'm sure this is easy but I can't figure it out on my own. -N

Ricod
12-24-2001, 08:00 AM
Anyway, make a MC with at least 3 frames :
1. stop();
2. either nothing or half of the movement.
3. the movement script.

The script could be sumthing like :

var CurrentX = _root.scrollTextMC._x;
_root.scrollTextMC._x = CurrentX + Speed;
gotoAndPlay (2);

I'm assuming u either declared Speed somewhere or just used a number there.

Whenever u want it to start scrolling tell the MC with the 3 frames of code to gotoAndPlay (2); and when u want it to stop to gotoAndStop(1);