Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : Scrolling dynamic text in a "movie credits" style


SuperPope
2/11/2004 7:59:04 PM
I'm creating a kiosk that will be displayed on 30 inch LCD displays in our
corporate headquarters. A list of names will be pulled from a database and
scrolled vertically across the screen, looping ad infinitum. Here are my
problems

1) The length of the list will vary from day to day. There may be thousands
of names, or there may be only a dozen names. How can I make the height of the
text field reflect these variations

2) The list needs to scroll until the last name goes past the top of the
screen, and then start over again from the bottom. How can I program for this
when the height of the text field is unknown? The rate of speed also needs to
be constant, regardless of the length of the list

I appreciate any help that can be offered
Karim N
2/11/2004 8:36:36 PM
1) textfield.autoSize = "center"

2) Loop over 2 or more frames, decrementing the _y property of the textfield
on each loop. (move it up
When the _y property == _height * -1 (when it's off the screen), reset the _y
property to it's initial state
AddThis Social Bookmark Button