Hello,
I´m in need of some help. I was wondering if its possible to get information from an xml-file depending on the date?
Right now I have an xml-file that looks something like this:
<images>
<image source="img.jpg" name="Example1" url="[http://www.google.se](http://www.google.se/)" date="6"></image>
</images>
And my actionscript looks something like this:
var xmlString:URLRequest = new URLRequest("img/images.xml");
var xmlLoader:URLLoader = new URLLoader(xmlString);
xmlLoader.addEventListener("complete", init);
function init(event:Event):void{
var xDoc:XMLDocument = new XMLDocument();
xDoc.ignoreWhite = true;
var imagesXML:XML = XML(xmlLoader.data);
xDoc.parseXML(imagesXML.toXMLString());
trace(xDoc.firstChild.childNodes[0]);
}
Is it possible to have a dynamic textfield with todays date (getDate), and if it is the 6th of the month, it gets correct information from the xml-file?
Hope I was clear enough, english is not my native language.
Thanks in advance.