Yesterday, I was playing with the new Flash Player 10 text engine and I clearly felt in love with it. The API is really powerful and you can do things just impossible to do in the past or at least hardly possible.

I came up with a little class handling different kind of smileys and even animated ones thanks to the GraphicElement class which can contain any kind of DisplayObject and therefore also the GIFPlayer class.

Notice how the Flash Player automatically handles spaces and line height break so that the GraphicElement perfectly fits. There is so much things to experiment with it !

Each time a smiley code is detected, if a Bitmap or an instance of the GIFPlayer is linked to that key the smiley is shown.

Here is a little demo :

A Flash animation should have appeared here, but it seems that your browser has an older version of the Flash Player or it is not installed at all. Please, install the last release of the Flash Player now, then reload this page.

If you guys are interested in such a class, let me know, so that I polish it and post it.