|
|
Search Tutorials
How It Works Despite what your browser shows, there are no line breaks, it is one long string. The first entry, "itemcount=8", tells the SWF how many entries to expect. This could be detected dynamically, but more data formating would be necessary. The alternative would be to test the value of symbol# until it equalled " ". I think all of the symbol# and price# entries are of obvious importance. The final entry, "eof=1", is important because of the way Flash loads data from files. Flash doesn't wait until the whole text file is loaded to begin trying to work with the values it expects to recieve. The "eof=1" allows a way to stall Flash while a looping script checks if the whole data file has been loaded; a pre-loader for the data. For those unfamiliar with the way tickers and other looping animations work, the basic premise is that there are 2 or more identical copies of the information. The ticker scrolls until the 2nd copy is aligned with the starting position of the 1st, allowing the clip to perform a "rewind" without any visual indication:
The top represent's the ticker's starting position. It scrolls until the position represented in the bottom image is achieved, then jumps back to the top position.
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
|