Hi, I’m trying to create a flash RSS reader, mostly for fun and to learn AS3 better.
It’s fairly small, 150x250 px, so some of the headlines will be too long.
When that happens, I want to add three period marks at the end.
Example:
The headline is “Big hurricane might hit Monday”.
I want AS3 to format this to “Big hurricane …”
How can this be done?
I’m thinking about adding an eventListener that count the number of letters, but how to make it add three dots after say the 20th letter and delete the rest of the text?
Or maybe there is a better way?