Free Flash XML Banner Rotator

Free Flash XML Banner Rotator

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.

View Demo

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>

Download Flash XML Banner Rotator Version V1

Enjoy!

[ad#co-1]

  • Vahur
    Hello,

    Could you please tell me where could i change the flash size so that it works. I opened the *.fla file and changed the size and imported the movie but it would not work, there is a black box in the right corner. I would like to change the size to 700x240, i allready changed the pictures to that size.

    Thank you in advance,
    Vahur
  • vinothsn
    can you send flash 8 version in file
  • Sibel
    very good! thanks...
  • jgionet
    I still can't figure out how to resize the banner dimensions!
    I have CS4 Pro! Help Please!
    Tried following the instructions in these comments and I can't find the exact settings mentioned. I'm fairly new to using Flash.
    Thanks
  • ms.webtech
    this.onResize = function()
    {
    //-- Called when browser is resized.

    this.txtDimentions._x = (Stage.width / 2) - (this.txtDimentions._width / 2);
    this.txtDimentions._y = (Stage.height / 2) - (this.txtDimentions._height / 2);
    this.txtDimentions.text = Stage.width + "x" + Stage.height;
    };

    Stage.scaleMode = "noScale";
    Stage.align = "TL";
    Stage.showMenu = false;
    Stage.addListener(this);

    this.onResize();

    may be this can help u
  • Manish
    sounds good!

    I want to make a flash header just like
    http://www.hulu.com/
    Can you help me on that ?
  • The code you are seeing does not currently do what you are talking about, however with some modification that could be accomplished. If you are not familiar with Actionscript I would suggest hiring a freelance developer to help you out.
  • wzcocoon
    small problem I am trying to includ this into the template of my site but been a dynamique template it look like the banners.xml file is not found so where and how can I put the full path to the xml file?

    templates/<?php echo $this->template ?>/XML_Banner
  • Wolverene
    Awesome! I see that there are buttons in the library but they don't appear on the display. How can it be made to appear there. It is useful for a user to play stop pause and go back and forth. thanks.
  • cbonline
    Hi!
    This banner is very nice. I need a width of 700 px. How could i change this. I have always a free space on the right side. Please help me? I go crazy.

    Thank you.
  • tati2001
    how to make it appear on your page? I mean we need the code to replace the link where lead the xml file and swf file. I need that code. Could you please give it to me? Thanks
    my email: ezz_tarek@hotmail.com
  • cat dang
    But how to make it appear on your page? I mean we need the code to replace the link where lead the xml file and swf file. I need that code. Could you please give it to me? Thanks
    my email: meocondautron@yahoo.com
  • Thanks for the great Banner Rotator. I've got it all set up and ready to go EXCEPT that for some reason it is displaying slightly wider than I want it.

    http://ozarkconference.org/banner/XML_Banner.html

    Needs to be 660 wide by 191 high.

    I'm Flash ignorant. Looks like the .swf file has the wrong dimensions.

    Any suggestions?
  • spreken
    its better if you put a button stop , play, next and preview....
    well its nice
  • stripetg
    Love this XML_Banner! It works great. One tweak I was wondering about doing is have the banners fade over the next image in the series, instead of to black or white.
  • lurko
    This stuff is awesome!
    I am not a flash guru, but I have managed to modify the swf as I wanted.
    Regarding the utf8 fonts, you need to embed the font sets you want: edit the movieclip named header_text, select the 'headerTxt' input area and click the embed button on the properties panel. Now choose whatever you need.

    Displaying body text: make a new input text component on the movieclip named header_text, and set the type to 'Dynamic Text' on properties panel. Name this item 'bodyTxt'.
    Now go back and edit banner_mc movieclip, frame 2, on the layer named 'actions'. Open up the actions panel (or press F9) and add this line right after line 14:
    imageText_mc.bodyTxt.text = bodyTexts[imageCounter].toString();

    (line 14 is like this:imageText_mc.headerTxt.text = banners[imageCounter].toString();)

    Hope this helps.

    Thanks for the great stuff again.
  • Name
    Hello again, any suggestions regarding my sizing-problem (is that how you would call it - I´m not native...)

    Just a small note if reducing the size without making the photo smaller would be great - or a quick not if it´s not possible..

    Thanks and greetings from Munich..
    The clueless female behind the screen
  • Name
    I cannot open up the fla file, i am using Micromedia Flash V8. When i tried to open it it says Unexpected File format.

    All i am trying to do is make it so the body text is displayed. How do you open the FLA?
  • Upgrade your version of flash and you will be able to read the file.
  • Name
    Mind telling me what version i need?
  • Flash CS4. You can download the Trial here: http://www.adobe.com/go/tryflash
  • Name
    Thanks, i will give it a try.

    BTW i also checkout your site, very interesting. I like the music.
  • Thanks. I'm actually working on a redesign, that design is very old.
  • Name
    Hi, thanks for that wonderful player. I´ve got one problem: The pictures I want to rotate are only 200 x 277 pixels, and everytime I want to adjust the player in width, the photos get smaller as well.. Is there any chance to reduce the whole player to the actual size of my pics (200x277)?
    That would be very nice...

    Thanks anyway! :)
  • jacobsa
    Hello, my second question. How to read a text value <body> in the XML file? I like to read the new added value? Thanks for the reply
  • jacobsa
    Hi flag. Please tell me how to modify a file to display Polish letters "śńąść" is UTF jets. The XML file I have a UTF-8. I do not know how to change the file. Fla .. Please help .. Thanks
  • dibakarjana
    Thanks
  • redshark
    For displaying text...

    1. go to frame 2 in "banner mc"

    2. in line 25 of the AS add this:
    //Display Text
    if (bodyTexts[imageCounter] != null) {
    imageText_mc.Texto.text = bodyTexts[imageCounter].toString();
    } else {
    imageText_mc.Texto.text = "";
    }
    } else {
    delete bannerContainer_mc.onRelease;
    }

    3. In the text frame open the MC "imageText_mc" and add a new text field and put "Texto" in the instance field. Publish it.
  • Kyle
    I am new to flash, i was able to get through steps 1 and 2 but I cannot find the ImageText_mc. Would you mind explaining a little more where it is. I do see the text frame inside Banner_mc.
  • This is great! Thanks!

    Only one question: The caption text doesn't appear anywhere. Is there a way to fix this?
  • Never mind, I figured it out. Pretty easy to modify. :)
  • Lauren
    Doug,

    Can you tell me how you added the caption text (or body text).

    Thank you.
  • Patrick
    Is anyone else having any trouble with the links in Firefox? I can click on a banner when it's displayed in IE and it will open the page I've set. If I'm viewing the SWF in Firefox, it doesn't do anything when I click the banner.

    Any ideas?
  • mach6ix
    Great Job! I am trying to use this in the first frame of a timeline.
    When I click to enter the back pages (or additonal frames on the timeline), they get forced back to the frame the banner is on.

    I'm assuming this is due to the timer refreshing the images, therefore forcing the page back to that frame.

    I'm curious if there is a way to ensure that the rotator stops working, when that frame is not being accessed or other means to ensure that the rotator doesn't force users back to it's frame?

    Thanks,

    Mike
  • priya
    hey thanks.. its works jst fine..
  • IK
    Everything else works fine, but links doesn't work - I click on banner but nothing happens! Please, help - how to make links work?
  • Hmm...links work for other people and source code hasn't changed. Are you using a popup blocker?
  • How can I make the links open in a new window?
  • Search for getURL commands and set them to "_blank". For more information on this search for getURL and learn more about it.
  • Steve
    Changing the Black fade to White.

    1) Change the stage color in Flash to white.

    2) Go to banner_mc in the library. Click on the image_animation layer and select frame 2.

    3) Click on the object (center mark will work), then go to the Properties Inspector window.

    You will see "Color: Advanced" is selected, click the settings button.

    4) Change column one's values to 0, 0, 0, 100%.
    Change column two's values to 255, 255, 255, 255.

    Click OK

    5) Go back to image_animation layer, select frame 35.

    6) Repeat steps 3 & 4.

    Publish the file, the fade should now be white.

    My thanks to Stephen for sharing.
blog comments powered by Disqus
Get Adobe Flash playerPlugin by wpburn.com wordpress themes