meinXML = new XML();
meinXML.ignoreWhite = true;
meinXML.load("website2.xml");
meinXML.onLoad = function(status) {
if (status) {
xmlpfad = this.firstChild.childNodes;
createEmptyMovieClip("label_mc", 1);
for (var i = 1; i < xmlpfad.length; i++) {
text_label = xmlpfad[i].firstChild.firstChild;
label_mc.attachMovie("LClip", "LClip" + i, i);
label_mc["LClip" + i].textlabel.autoSize = "left";
label_mc["LClip" + i].textlabel.htmlText = text_label;
label_mc["LClip" + i]._y = label_mc["LClip" + i]._height * i * 1.1;
label_mc["LClip" + i].daten = xmlpfad[i].firstChild.nextSibling.nextSibling.firstChild;
//
//
//
label_mc["LClip" + i].beschreibung = xmlpfad[i].childNodes[1].firstChild.nodeValue;
label_mc["LClip" + i].inhalt = xmlpfad[i].childNodes[2].firstChild.nodeValue;
label_mc["LClip" + i].bild = xmlpfad[i].childNodes[3].firstChild.nodeValue;
label_mc["LClip"].willkommen = xmlpfad[0].childNodes[1].firstChild.nodeValue;
//
//
//
label_mc["LClip" + i].onRelease = function() {
//
// Beschreibung und Inhalt wird in den Scrollpanes angezeigt
//
var clip = _root.attachMovie("LClip2", "LClipBeschreibung", 1000);
clip.textlabel.htmlText = this.beschreibung;
_root.box_beschreibung.setScrollContent(clip);
//
//
//
var clip2 = _root.attachMovie("LClip", "LClipInhalt", 1001);
clip2.textlabel.htmlText = this.inhalt;
_root.box_inhalt.setScrollContent(clip2);
//
// Refreshing der ScrollPaine nach 2 Frames
//
var c = 0;
this.onEnterFrame = function() {
if (c > 1) {
_root.box_inhalt.refreshPane();
_root.box_beschreibung.refreshPane();
delete this.onEnterFrame;
}
c ++;
}
//
//
//
_root.box_bild.loadScrollContent(this.bild);
//
//
//
};
}
box_links.setScrollContent(label_mc);
}
};
//
// ScrollPaine-Eigenschaften
//
box_inhalt.boundingBox_mc._alpha = 0;
box_inhalt.depthChild0._visible = false;
var clip3 = _root.attachMovie("LClip", "LClipWillkommen", 1001);
clip3.textlabel.htmlText = this.willkommen;
_root.box_inhalt.setScrollContent(clip3);