Results 1 to 4 of 4

Thread: XML rotating banner help ASAP please

  1. #1

    XML rotating banner help ASAP please

    I'm trying to make a similar rotating banner as the one on www.nationalgeographic.com.

    I've built the movieclip holder with the instance name "bannerholder" and basically want to have the jpegs load via XML and change out every 4/5 seconds (delay times). I wanted it to autoplay and then if you hit a next or previous btn, the banner changes to the next one. Once it gets to the fourth and final banner, it would loop to the first.

    Can anyone help me with the first frame actionscript necessary here please? Here's the XML provided by one of my developers:

    <?xml version="1.0" standalone="yes"?>
    <NewDataSet>
    <xs:schema id="NewDataSet" xmlns="" xmlnss="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-comml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="BannerItem" msdata:CaseSensitive="False" msdata:Locale="en-US">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="PrimaryKey" type="xs:int" />
    <xs:element name="ImageName" type="xs:string" minOccurs="0" />
    <xs:element name="UrlSet" type="xs:string" minOccurs="0" />
    <xs:element name="DatePosted" type="xs:dateTime" minOccurs="0" />
    <xs:element name="Status" type="xs:string" minOccurs="0" />
    <xs:element name="BeginDate" type="xs:dateTime" minOccurs="0" />
    <xs:element name="EndDate" type="xs:dateTime" minOccurs="0" />
    <xs:element name="RelativeOrder" type="xs:int" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <BannerItem>
    <PrimaryKey>1</PrimaryKey>
    <ImageName>banner1.jpg</ImageName>
    <UrlSet>http://www.testurl.net/</UrlSet>
    <DatePosted>2008-08-12T00:00:00-05:00</DatePosted>
    <Status>P</Status>
    <BeginDate>2008-08-12T00:00:00-05:00</BeginDate>
    <EndDate>2008-08-30T00:00:00-05:00</EndDate>
    <RelativeOrder>1</RelativeOrder>
    </BannerItem>
    <BannerItem>
    <PrimaryKey>2</PrimaryKey>
    <ImageName>banner2.jpg</ImageName>
    <UrlSet>http://www.rivetglobal.com</UrlSet>
    <DatePosted>2008-08-12T00:00:00-05:00</DatePosted>
    <Status>P</Status>
    <BeginDate>2008-08-12T00:00:00-05:00</BeginDate>
    <EndDate>2008-08-12T00:00:00-05:00</EndDate>
    <RelativeOrder>2</RelativeOrder>
    </BannerItem>
    </NewDataSet>


    Ideally, there will be 4 banners (so imagine a banner4.jpg). I'd greatly appreciate your help. Tuesday deadline...yikes!

  2. #2
    Oh, and I'm using Flash CS3, however exporting with Actionscipt 2.0.

    Thanks.

  3. #3
    Hi Shinddles and welcome to the Forum.

    There are a number of tutorials on this very site detailing how to create an XML Driven carousel, or if you are not feeling adventurous, Jeroen Wijering created an excellent (and free) Image Rotator which you can download from his site.

    If you want someone to write a carousel unit from scratch for you, then I think you will need to hire a freelancer.

    Regards
    Jonny.

  4. #4
    Okay, got the code, implemented it. Great. Now, how could I add a pause/play button so that on release of the pause button, the rotating banner stops, then plays again on release of play?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012