Flash Bestiary / Fun with Text / Ticker with Effects |
|
Ticker with EffectsThis next ticker supports the use of a few different transition effects for displaying short lines. In addition to the basic scrolling text effect, we can introduce lines by scrolling from any of 4 directions, or doing two different 3d text-zoom effects. I use a more complex data structure to control this. Instead of a simple array of strings, I use an array of hashes, which contains additional data fields for the debut and exit. Here's what it looks like:
var tickerItems = [ UPDATE: The source code below now contains an Actionscript 3 version, in addition to the original Flash MX code. |
|
|
|
Next: XML Ticker |
Copyright © 2003,2008 by Jim Bumgardner. All Rights Reserved. Leave Jim some feedback