Jun 25, 2008
So everyone needs an XML Banner in Actionscript 2 and honestly I am kind of tired of making them over and over again. I would rather work on something big and beautiful. You can use this for whatever you want. It reads off of an XML where you can set it to show them in random order, set the time the banners have to show and other such features.
Here is a sample of the xml and an explaination of each node.
<rotator isRandom=”false”> – Set to true for random order of banners
<bannerTime>2</bannerTime> – Number of seconds to show each banner
<numberOfBanners>5</numberOfBanners> – Number of banners
<banners showHeader=”true”> – Shows the title
<banner>
<name>Banner 1</name> – Caption that shows on the bottom
<body>Lorem Ipsum</body> – For extra functionality if necessary
<imagePath>01.jpg</imagePath> – Path of the image
<link>http://www.weberdesignlabs.com</link> – Link the banner goes to
</banner>
</banners>
</rotator>
Enjoy!
[ad#co-1]













Last
Youtube
Twitter
Digg
RSS