home page icon Flash Bestiary / Fun with Text / Ticker with Effects
   

Ticker with Effects

This 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 two additional arrays to control this. One to specify the 'debut effect' and one to specify the 'exit effect'. They are both lists of numbers, like this:

var tickerItemDebut = [1,0,2,3,4,5,6,0];
var tickerItemExit = [4,0,5,6,1,2,3,0];

The numbers have the following meaning:

0 - no effects (text just scrolls from right to left, as before
1 - left side (text debuts from, or exits to left side)
2 - right side
3 - top
4 - bottom
5 - tiny (text starts out tiny, or shrinks to tiny at exit)
6 - big

 

sourcecode iconDownload the flash project
book iconJim's Favorite Actionscript Books
wiki iconAsk Jim about Actionscript
Next: XML Ticker

Having trouble opening the project? You may need to Upgrade to Flash MX 2004



Copyright © 2003,2004 by Jim Bumgardner. All Rights Reserved.        Leave Jim some feedback