No-database Flash-PHP chat. Part V: Emoticons

This is the final article of the No-database Flash-PHP chat series (see Part I, Creating Basic Chat Functionality, Part II Security and Usability features, Part III Security and Usability features (continued) and Part IV, Usability and nice-to-have features)

In this last iteration we will concentrate on a topic that is definitely more fun than security or user tracking. Today we will talk about “Emoticons” or how they also call them “Smileys”. According to Merriam-Webster dictionary an emoticon is “a group of keyboard characters (as :-)) typically representing a facial expression or an emotion or otherwise conveying tone or attitude that is used especially in computerized communications (as e-mail)”.  We could add to that instead of “a group of keyboard characters” it could be an image, or in case with Flash … animation (yummy!).

There is a good and bad news. The good news is you CAN make really cool looking Flash emoticons with sound, video and all the effects Flash has in its arsenal. The bad news is Flash seems to be having troubles with positioning movie clip within a TextField or TextArea component inline with the text.  The only workaround I found was to display emoticons on the next line. If this doesn’t bother you – proceed to the next paragraph, otherwise I would suggest waiting for the next version of Flash player. Hopefully this bug will be fixed.

$2.89
- OR -

Overview

As always, let’s first determine how this feature will work and build the functionality upon that.  Usually in order to send an emoticon in an instant messenger application a user would somehow access a menu with emoticon buttons, then click one to place the emoticon in the message box. Alternatively, an emoticon can be automatically inserted when a user types a literal shortcut, such as :-) for a smiling face. After it’s been sent the message appears in the chatbox along with the emoticons.


In our case we could develop on both methods, but to save the development time and CPU we will implement only the first one – the “smiley buttons”.

Alex July

Alex JulyAlex July is a Vancouver-based (Canada, British Columbia) Web Developer/ Graphic Artist who has an extensive experience in both creative realms.
He is also a host of Linecraft.com where he is showcasing his skills and sharing experience with the developers community. For the past 3 years Alex has been focusing on the development of Rich Internet Applications using Macromedia Flash technology.

When away from the computer Alex is practicing Martial Arts, playing guitar and enjoying time with his wonderful family.

See All Postings From Alex July >>

Reviews

Be the first to write a review

You must me logged in to write a review.