• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

Extending / Customizing TextArea

Hi,

I am using Macromedia Flash MX 2004 Professional and I have a text area component that i am using as a chat window. I want to be able to replace certain keywords with emoticons in the chat. I can replace the keywords no problem using regular expressions, but I can seem to get the images to dynamically fit into the text the way the are supposed to.

For example:

I have the string:

hello :-) how are you

I can replace this with:

hello <img src='smile'> how are you

but the image does not go where it is supposed to. I goes all the way to the right of the line. I would like to have the images placed dynamically in the text like a normal IM or chat application. Also, the image sometimes does not appear until another line of text is written to the TextArea.

Does anyone have a way to make this work?

Thanks!

0
xeon999
Asked:
xeon999
1 Solution
 
negatyveCommented:
3 solutions:

1. http://www.flashcomponents.net/components/preview/preview.php?id=372
2. create your own font with smilies as characters
3. use a List component, and create line by line

By now, img control in a TextArea is very very poor..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now