I really like SWF Decompiler and works ok ntill now.
I have a swf file wich take uase of an XML file.
Wehen I play the original swf file it reads the XML ok and shows the text.
Only after I decompiled the swf, and change nothing, and publish it as a swf again, then the XML file itself is rea, only it shows a "undefined" in all textboxes. Am I doing something wrong? I did not change anything yet, but it already gives the error. The actionscript and all looks fine to me, but then again, actionscript is not my best subject. Below is the actionscript and the xml filetext.
Can it be something doing with instance names for the (dynamic) text boxes?
Look forward hearing any possible solutions.. Thanks!
var xmlData = new XML();
var xmlDataArray1 = new Array();
xmlData.onLoad = function (success)
for (var _loc1 = xmlData.firstChild.firstChild; _loc1 != null; _loc1 = _loc1.nextSibling)
xmlDataArray1[_loc1.nodeName] = _loc1.firstChild.nodeValue;
var_trace1 = xmlDataArray1[var_data1];
var_trace2 = xmlDataArray1[var_data2];
var_trace3 = xmlDataArray1[var_data3];
var_trace4 = xmlDataArray1[var_data4];
} // end of for
XML file (zavvi.xml):
<Data1><![CDATA[This is text showing in Flash..]]></Data1>
<Data2><![CDATA[This is text showing in Flash2..]]></Data2>
<Data3><![CDATA[This is text showing in Flash3..]]></Data3>
<Data4><![CDATA[This is text showing in Flash4..]]></Data4>