You are browsing posts made during December, 2008

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


Updates to XML News Ticker

( December 24th, 2008 )

It was brought to my attention that the zip file did not have the fla in it. I have added the fla to the zip file in the original post.

I have also succeeded in using multiple font styles in the text field. So you will be able to use standard, bold and italic styles in the XML file.

I am also adding error handling for the XML load as well as trying out the Tween class for smoother scrolling.

Watch this space for the next release.


XML News Ticker Updated

( December 23rd, 2008 )

I made a small update which stops the scrolling when you move your mouse over the text field.

I added the updated file to the original post.


AS3 XML News Ticker

( December 23rd, 2008 )

Here is an ActionScript 3.0 XML News Ticker. I have embedded the font so that it displays in the masked area. I still need to figure out how to add bold and italic formatting to the embedded font via xml. When I do, I will update the post.

(This file will open in Flash CS3) (Preview File)
Get Source