Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden. Du solltest ein Upgrade durchführen oder ein alternativer Browser verwenden.
Ich habe ein Text-Feld in Flash erstellt und da soll die XML-Datei reigeladen werden, das soll mit Aktion XML Load gehen . Man soll den Text dan mit zwei Feilen Hoch und Runter bewegen können.
Mit einer normalen Text-Date geht das ja auch aber wen ich das mit einer XML-Datei machen will geht das nicht.
hier is nen text der schon seit dekaden auf meinem rechner verstaubt, ich hoffe er hilft dir...
I've seen a lot of questions about loading variables from a text file. My suggestion for f5, use XML !
Here is cut and paste code, just put this into frame1 of any movie, and volia, you can load variables from nice looking XML
var varsXML = new XML();
varsXML.onLoad = loadVars;
varsXML.load("vars.xml");
stop();
function loadVars(success) {
if (success) {
var item = varsXML.firstChild.firstChild;
while (item != null) {
eval(item.attributes.NAME) = item.attributes.VALUE;
item = item.nextSibling;
}
_root.gotoAndPlay("varsLoaded");
} else {
_root.gotoAndPlay("errorLoadingXML");
}
}
The "vars.xml" file should look like this
(while im talking to myself)
... and if you want to add support for muliline txt boxes
change this line
eval(item.attributes.NAME) = item.attributes.VALUE;
to this
eval(item.attributes.NAME) += item.attributes.VALUE + chr(10);
then in your XML, just add one item per line, with the NAME matching your mulilined text box.
<ITEM NAME="stuff" VALUE="line 1 of cool stuff"/>
<ITEM NAME="stuff" VALUE="line 2 of cool stuff"/>
<ITEM NAME="stuff" VALUE="line 3 of cool stuff"/>