Thursday, July 29th 2010, 1:27pm UTC+2
You are not logged in.
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<?xml version='1.0' encoding='WINDOWS-1252' ?>
<menue>
<forum>
<team>
<mod>Madokan</mod>
<mod>Miesel</mod>
<mod>Ming</mod>
<mod>Kelor</mod>
<mod>Sven</mod>
<mod>Tschdaeff</mod>
</team>
<foren>
<topic>Flash alle Versionen</topic>
<topic>Flash inkl. Action-Sctipt</topic>
<topic>ServerSeitiges</topic>
<topic>Grafik</topic>
</foren>
<news>
<info>Tschdaeffs Xml Menue</info>
<info>Tschdaeffs Xml Menue</info>
<info>Tschdaeffs Xml Menue</info>
</news>
</forum>
</menue>
|
|
|
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
mods = []
topics = []
info = []
clips = function () {
for (var i=0;i<mods.length;i++) {
ebene++
_root.attachMovie("clip","mc"+ebene,ebene,{_x:100,_y:ebene*20+50})
_root["mc"+ebene].output.text = mods[i]
}
for (var i=0;i<topics.length;i++) {
ebene++
_root.attachMovie("clip","mc"+ebene,ebene,{_x:100,_y:ebene*20+70})
_root["mc"+ebene].output.text = topics[i]
}
for (var i=0;i<info.length;i++) {
ebene++
_root.attachMovie("clip","mc"+ebene,ebene,{_x:100,_y:ebene*20+90})
_root["mc"+ebene].output.text = info[i]
}
}
f = new XML ();
f.ignoreWhite = true;
f.load ("menu.xml");
f.onLoad = function (ok) {
if (ok) {
team = this.firstChild.firstChild.childNodes[0]
for (var i=0;i<team.childNodes.length;i++) {
mods.push (team.childNodes[i].firstChild)
}
foren = this.firstChild.firstChild.childNodes[1]
for (var i=0;i<foren.childNodes.length;i++) {
topics.push (foren.childNodes[i].firstChild)
}
news = this.firstChild.firstChild.childNodes[2]
for (var i=0;i<news.childNodes.length;i++) {
info.push (news.childNodes[i].firstChild)
}
clips ()
}
}
|
|
|
ActionScript-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
_root.createEmptyMovieClip("halter", 1000);
mein_xml = new XML();
mein_xml.ignoreWhite = true;
mein_xml.load("daten.xml");
mein_xml.onLoad = function(status) {
if (status) {
daten_xml = this.firstChild.firstChild.childNodes;
for (i=0; i<this.firstChild.firstChild.childNodes.length; i++) {
_root.halter.attachMovie("punkte", "punkte"+i, i);
_root.halter['punkte'+i]._y = i*17;
_root.halter['punkte'+i].inhalt_txt.text = daten_xml[i].attributes.titel;
_root.halter['punkte'+i].link = daten_xml[i].attributes.adresse;
//trace(daten_xml[i].attributes.titel)
}
}
};
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 |
<?xml version='1.0' encoding='WINDOWS-1252' ?> <links> <inhalt> <menu titel="Flashbattle.de" adresse="http://www.flashbattle.de.de"></menu> <menu titel="heise.de" adresse="http://www.heise.de"></menu> <menu titel="waz.de" adresse="http://www.waz.de"></menu> <menu titel="shortnews.de" adresse="http://www.shortnews.de"></menu> <menu titel="flashstar.de" adresse="http://www.flashstar.de"></menu> <menu titel="zdf.de" adresse="http://www.zdf.de"></menu> </inhalt> </links> |

