SourceTec Software

It is currently Thu Apr 17, 2014 7:36 pm

All times are UTC + 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Apr 16, 2010 1:39 am 
Offline
Member

Joined: Fri Apr 16, 2010 1:30 am
Posts: 1
Hello everyone,

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!

Patrick

Flash Actionscript:

var xmlData = new XML();
xmlData.load("xml/zavvi.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):

<Data>
<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>
</Data>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group