Limit words in text field

I have xml data that I am importing into flash. I would like to limit the number of words that gets displayed for one of the nodes.


var cDesc = three*.childNodes[3].childNodes;
text_mc.createTextField("text"+i, text_mc.getNextHighestDepth(), 0, 0, 300, 75);
var thumbText = text_mc["text"+i];
thumbText.wordWrap = true;
thumbText.multiline = true;
thumbText.html = true;
 
var myformat:TextFormat = new TextFormat();
myformat.font = "Verdana";
myformat.size = 11;
myformat.color = 0xFFFFFF;
 
thumbText.htmlText = cDesc;

If possible I would like the final output to have 3 dots at the end, like:


Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam 
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam 
erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur 
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et 
dolore magna aliquyam erat, sed diam voluptua...

Any ideas?