For the description field you will probably need to use the RegExp class to isolate the <img... > tag and the text that follows as two separate pieces. You could also use the /> of the image tag aling with the String class's lastIndexOf() method to divide and conquer, creatuing substrings around it being there. THe first substring from the start of the string to the index of the ">" and the secodn substring starting there to the end of the string.
For the pubDate field you there are a couple options. One way would be to seek out the lastIndexOf(":") in that string and then get a substring from it that cuts it off two characters later (to keep the seconds value).
Ned, thanx for you attention, but i can understand how doing what you say... i can't edit the rss text, cause is load from one site that i don't have access...
but i tried one solution for create a link
textBox.appendText( "<a href= \u0022" + theXMLData.channel.item[b].link + "\u0022 >Click Here </a>" );
this works fine, but... the tag "<img src=..." is different of tag <link>
this make difficult to create a code for this,
textBox.appendText( "<img src= \u0022" + theXMLData.channel.item[b].img + "\u0022/>" );
but doesn't works...
you can think something like this to solve the problem of load image?
Thank for all..
ps: thankyou for substring, this solved the problem!
When you parse that description tag from the xml you will end up with a string. Just take that string and do something like the following (the first line is the string you extract, slightly modified)...
// this is the parsed line from the xml data feed
var desc:String = "<img src='http://static.guim.co.uk/007.jpg' /> In an article for the website, etc...";
// here you extract the image portion
var descImg:String = desc.substr(desc.indexOf("<"),desc.indexOf(">")+1);
// here you extract the text portion after the image
var descText:String = desc.substr(desc.indexOf(">")+1);