O'Reilly logo

Wordpress and Flash 10x Cookbook by Sarah Soward, Peter Spannagle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a custom Quote Rotator using XML

If you want to make a Quote Rotator to your own specifications, it is entirely possible do to so with Flash. In this recipe, you will create a custom Quote Rotator. The quotes will be fed into the SWF from an XML file. A wipe effect is used in this recipe. A fade effect is outlined in the There's more... section.

Getting ready

If you want to see a demo, it is located in theChapter 6 folder.

How to do it...

  1. Create an XML file using the text editor of your choice.
  2. Input the following code:
    <?xml version="1.0" encoding="UTF-8"?> <data> <quote>There's a special joy that comes with tweening.</quote> <quote>See? You, too, can create SWFs from scratch.</quote> <quote>Randomness is good for the soul. </quote> <quote>If ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required