Hello guys,
I would realy appreciate it if you can help me on this.
[COLOR=Red]I want to load 3 text strings from an xml file to three different named text fields in[/COLOR][COLOR=Red] a swf file generated by flash cs3[/COLOR][COLOR=Red] AS 3.0. [/COLOR]
I placed three text fields on the stage in flash and gave them instance names box1_txt box2_txt and box3_txt.
I wrote three text strings in an xml file and I want them to load to the textfields box1_txt, box2_txt and box3_txt respectively, taking into consideration that the text fields can be on different frames, layers, and even inside a movie clip.
This is to give others the ability to change the text strings (in the xml file) into other langages without the need to use flash
My xml file could look like this:
<?xml version=“1.0” encoding=“UTF-8”?>
<map>
<title box1_txt =“This is text field ONE” />
<title box2_txt=“This is text field TWO” />
<title box3_txt=“This is text field THREE” />
</map>
I just do not know how to structure and write the AS3 code. :crying:
Can you help me with the code please? it is really urgent!
Or i there a tutorial you know it explains how to direct text strings frm xml to text field instances?
Thanks