Dynamic Flash Banner from XML data
The attempt here is to prove the versatility of Flash. With just very simple
(too simple) XML and a few pre-made movie clips you can create, not just dynamic
text, but dynamic everything.
Here I provide three XML files that just contain
a few parameters. When you click on the links, it calls this same page, passing
a 1, a 2 or a 3. Depending on that number, the parser then loads XML1, 2 or
3. In this XML are the parameters that specify what individual movieclips to
load. And there you have it. A dynamic banner. Imagine creating a banner with
many more parameters, with instructions on how to animate the text (from here
to there), etc.
Let me know if any questions...
<?xml version="1.0" encoding="iso-8859-1"?>
<DATA>
<ROW backgroundcolor="0xF1EFE2" logoclip="sample_1.jpg"
animateclip="animate_1.swf" textclip="text_1.swf" text2="1:
This is the Main title" text1="this is the subtitle" />
</DATA>
<?xml version="1.0" encoding="iso-8859-1"?>
<DATA>
<ROW backgroundcolor="0xF1EFE2" logoclip="sample_2.jpg"
animateclip="animate_1.swf" textclip="text_1.swf" text2="2:
This is the Another Main title" text1="this is the another subtitle"
/>
</DATA>
<?xml version="1.0" encoding="iso-8859-1"?>
<DATA>
<ROW backgroundcolor="0xF1EFE2" logoclip="sample_3.jpg"
animateclip="animate_1.swf" textclip="text_1.swf" text2="3:
Yet Another Main title" text1="yet another subtitle" />
</DATA>