[FMX] XML Productslider

Hi Folks,

Here something to play around - just simple productslider.

XML-Code:


my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.load("produkte.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");
		}
	}
}

Examplel:
Example Hor.
Example Vert.

Download:
FLA Portal

Be inspired.

yours
Matze K.