Xml slider needs counter / or dynamic numbers

Hi All,

I hope someone can help me out with the following:
I have a horizontal xml picture and info slider. All works fine exept
I need some additional features to it…

one of them to start of with is a “counter”, 2 dynamic textfields which display
A:the current picture number and
B:the total number of pictures

here is my current actionscript:
[AS]
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.load(“slider.xml”);
my_xml.onLoad = function(status) {
if (status) {
obj_xml = this.firstChild.childNodes;
clipGen();
}
};

function clipGen() {
for (var i = 0; i < obj_xml.length; i++) {
this.attachMovie(“clip”, “clip” + i, i);
this[“clip” + i].display_txt.text = i+1;
this[“clip” + i]._x = this[“clip” + i]._width * i;
this[“clip” + i]._y = 0;
this[“clip” + i].titel_txt.text = obj_xml*.attributes.titel;
this[“clip” + i].date_txt.text = obj_xml*.attributes.datum;
this[“clip” + i].content_txt.text = obj_xml*.firstChild;
this[“clip” + i].image_mc.loadMovie(obj_xml*.attributes.bild);
this[“clip” + i].url_btn.url = obj_xml*.attributes.links;
this[“clip” + i].url_btn.onRelease = function() {
getURL(this.url,"_blank");
}
}
[/AS]

Even better would be a horizontal line of number 123etc…which would be clickable…
and direct the slider to the acoording project…

and still not incorporated is a preloading script…but let’s start with the counting thingy…:wink:

Hope someone can advice/assist me with some "counting"actionscript

Thanks in advance!

Best,

Arn