easy flash question... i think
- Started
- Last post
- 4 Responses
- cxbrix
Hey, I'm hoping someone here can help me out with this somewhat easy task.
I have a vertical list of text that needs to scroll automatically and loop seamlessly. Hoping that I can do this easily with action script instead of tweaning since its a rather large list. Any help would be much appreciated!
- cxbrix0
bounce
- unfittoprint0
you're being a little bit vague. Is it an external text/xml/php file? Changing Textfield content with internal variables? And what do you mean with loop seamlessly?
- DigitalMe0
I've done this many times.
you just need to duplicate the list...
EXAMPLE:
Item 1
Item 2
Item 3
Item 1
Item 2
Item 3In this example the list would move down. The column would start with the bottom seciton visible first. The logic would be something like - if the list's y location is greater than, or equal to some coordinate then reset it's location here, otherwise move the list at some pixel distance per frame.
If your list is dynamically generated, and therefore not a static size vertically it's a bit more complex, but not terribly. You'll just have to get the height of the list and use that measurement to determine point at which the list will reset.
You should turn on 'snap to pixels' when you build the spaces for the menu items to keep em all nice and equal. that will make all your calculation easier.
My kid woke me up at 5 a.m. this morning, hope this makes sense.
- DigitalMe0
There are more complex, sleek, sexy ways of doing this...but this should suffice as a rudimentary method of accomplishing what I think you're asking.