# Need help regarding splitting

**URL:** <https://forum.kirupa.com/t/need-help-regarding-splitting/294235>\
**Category:** Uncategorized\
**Created:** [August 11, 2009, 10:37am UTC](https://forum.kirupa.com/t/need-help-regarding-splitting/294235 "2009-08-11T10:37:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajesh\_flash](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@rajesh\_flash](https://forum.kirupa.com/u/rajesh_flash)\
**Post date:** [August 11, 2009, 10:37am UTC](https://forum.kirupa.com/t/need-help-regarding-splitting/294235/1 "2009-08-11T10:37:24Z")

</div>

friends,

i am having a small doubt in flash. i am loading an external .txt file and am displaying. its working fine. but when am trying to split the specified values, the value was disappearing. i mean except that splitted value everything is displaying… how to get that.

var loadXML:XML = new XML();  
var myarr:String;  
loadXML.ignoreWhite = true;  
loadXML.onLoad = function(success) {  
myarr = loadXML.toString()  
trace(myarr.split(“description”))  
};  
loadXML.load(“pictures.txt”);

" pictures.txt " contains

\<pictures\>  
\<picture thumb=“test-images/01.png” description=“Tons of customisation options” name="[[COLOR=#810081]http://www.google.com[/COLOR]](http://www.google.com/)" param="\_blank"\>\</picture\>  
\<picture thumb=“test-images/02.png” description=“User controlled rotation or auto-rotate” name="[[COLOR=#810081]http://www.google.com[/COLOR]](http://www.google.com/)" param="\_blank"\>\</picture\>  
\<picture thumb=“test-images/03.png” description=“Item description” name="[[COLOR=#810081]http://www.google.com[/COLOR]](http://www.google.com/)" param="\_blank"\>\</picture\>  
\</pictures\>

its an xml string based.

now i want to store the picture thumb value in one array value, and description value in another… like tat…

any solutions would be appreciated…

Rajesh
