Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » 3rd_Party/Other

Categories Flash Ticker Instance Model
Author: Joshua Sullivan | Website: http://www.metagamer.com/ |

 
Page 2
«prev 1 2 3 4 5 6 7 next»

Introduction

Need a ticker on your site, but can't scrounge up the $1000 for Generator? This tutorial will show you how to make your own ticker with even better features! Generator tickers suffer from several problems: they can only move at a single pre-determined speed, they cannot change directions, and their file size is HUGE! Since my version is entirely driven by ActionScript, not tweens, the final file size is very small. My example SWF is 7k, of which nearly 5k is font outlines. A text-only ticker with generic fonts could easily weigh in under 4k!

First, you have to decide what the general format of each ticker entry should be. This example only uses a single format, but a small change to the data file along with a small addition to the ActionScript could allow for multiple formats. In the example, each entry is simply two stacked text fields:

(Yes, I realize how boring this is.)

Thus... to create a ticker, we'll need two data values for each entry, which leads us into the format of the data file. In the file that you can download at the bottom of this tutorial is a file called "list_data.txt". This is read in by the SWF at run-time to create the ticker. Here is the URL encoded data from the file:

itemcount=8&symbol1=MSFT&price1=70.5&symbol2=SBUX&price2=34.5625&
symbol3=CSCO&price3=62.875&symbol4=AMCC&price4=96.875&symbol5=QCOM&price5=74.6875&
symbol6=INTC&price6=128.9375&symbol7=WCOM&price7=43&symbol8=ORCL&price8=82&eof=1

«prev 1 2 3 4 5 6 7 next»

» Level Advanced

Added: : 2000-06-19
Rating: 6.00 Votes: 32
Hits: 5611
» Author
No information about the author has been provided.
» Download
Download the files used in this tutorial.
Download (84 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers