AS3 XML News Ticker v3
( December 25th, 2008 )Here is the final version of the ActionScript 3.0 XML News Ticker. I tried using the Tween class as well as Tweener and both produced very little improvement to the scrolling animation. My method gives you easier control over the speed of the animation.
I have also embedded multiple styles of the font, so you are able to apply normal, bold and italic styles to the text field via xml. Depending on what font you choose to embed, you can add all styles of that font simply by adding the additional styles to the library and setting their linkage.
I am going to add a tutorial on how to work with text fields and embedding fonts. One very exciting thing in ActionScript 3.0 is the ability to align your text to tabs in a text field.
I have also added an error handler to check whether the xml loads or not. If it does not, a default error message appears in the text field. This can be customized in the fla file.
(This file will open in Flash CS3) (Preview File)
Get Source
|
Posted in ActionScript 3.0, Flash | |