# Loading XML into Flash

**URL:** <https://forum.kirupa.com/t/loading-xml-into-flash/215909>\
**Category:** programming\
**Created:** [February 12, 2007, 1:51am UTC](https://forum.kirupa.com/t/loading-xml-into-flash/215909 "2007-02-12T01:51:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dada78](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dada78](https://forum.kirupa.com/u/dada78)\
**Post date:** [February 12, 2007, 1:51am UTC](https://forum.kirupa.com/t/loading-xml-into-flash/215909/1 "2007-02-12T01:51:39Z")

</div>

Hi guys,

What I would like to accomplish is to have a textarea populated with an xml file when a button is clicked. I have 3 buttons. Each should load a different .xml file into the textarea.

What would be the easiest way to go about it? Can I utilize the xml connector for this? If so, how is this done?

Basically I would like to have the same effect as described here only that the data should be pulled from a xml instead of a text file. [http://www.kirupa.com/developer/mx/multiple\_dynamictext.htm](http://www.kirupa.com/developer/mx/multiple_dynamictext.htm)

Or is it as easy as just exchanging loadText.load(“TEXT1.txt”); for “Text1.xml”?

Thank you!  
Dada
