Copy link to clipboard
Copied
Hello to everybody!
Like many other members I'm new in flash and actionscript , so I need some help from the pros.
I have a XML file like this:
<root>
<Event TextOne="TextShow1" TextTwo="TextShow2"/>
<Event TextOne="TextShow3" TextTwo="TextShow4"/>
<Event TextOne="TextShow5" TextTwo="TextShow6"/>
</root>
All I want is to load the XML data in Flash in two dynamic text fields (TextOne_mc and TextTwo_mc) and make the TextOne_mc to show me first the "TextShow1" then the "TextShow3" etc and the TextTwo_mc to show me first "TextShow2" then "TextShow4" etc,but when I'm done with it,TextOne_mc shows me "TextShow5" and TextTwo_mc shows me "TextShow6" only,so I understand that I'm not done with it correctly and something missing. .
I hope you understood.Sorry if you don't understand my explanation.
Thank you!!
Copy link to clipboard
Copied
You need to append the values instead of Just assigning:
For example:
var str:String="Raja";
var str1:String="Rajan";
text1.text=str;
text1.text=str1;
After proceeding the above two statements it will display as Rajan. if you need both then it would be
text1.text=str;
text1.text+=str1;
The above is the concetatnation.
Copy link to clipboard
Copied
Thank you for your reply!I found a fuction that helped me to complete my work.Thank you for your help anyway.
Copy link to clipboard
Copied
You're welcome.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more