Thursday, July 29th 2010, 1:29pm UTC+2
You are not logged in.
|
|
ActionScript-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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");
}
}
}
|


