Results 1 to 4 of 4
-
August 18th, 2008, 04:38 PM #13Registered User
postsXML 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="" xmlns
s="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com
ml-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!
-
August 18th, 2008, 04:40 PM #23Registered User
postsOh, and I'm using Flash CS3, however exporting with Actionscipt 2.0.
Thanks.
-
August 18th, 2008, 04:59 PM #3285ActionScript Developer
postsHi 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.
-
August 19th, 2008, 05:03 PM #43Registered User
postsOkay, 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?

Reply With Quote


Bookmarks