Matthias Kannengiesser
Erfahrenes Mitglied
Hi Folks,
Hier was zum rumspielen - bin sicher Ihr macht euch drüber her.
XML-Bestandteil:
Beispiel:
Beispiel Hor.
Beispiel Vert.
Be inspired.
Liebe Grüsse
Matze
Hier was zum rumspielen - bin sicher Ihr macht euch drüber her.
XML-Bestandteil:
PHP:
mein_xml = new XML();
mein_xml.ignoreWhite = true;
mein_xml.load("produkte.xml");
mein_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].anzeige_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[i].attributes.titel;
this["clip" + i].datum_txt.text = obj_xml[i].attributes.datum;
this["clip" + i].inhalt_txt.text = obj_xml[i].firstChild;
this["clip" + i].bild_mc.loadMovie(obj_xml[i].attributes.bild);
this["clip" + i].url_btn.url = obj_xml[i].attributes.links;
this["clip" + i].url_btn.onRelease = function() {
getURL(this.url,"_blank");
}
}
}
Beispiel:
Beispiel Hor.
Beispiel Vert.
Be inspired.
Liebe Grüsse
Matze