?
Solved

Extending / Customizing TextArea

Posted on 2005-05-10
1
Medium Priority
?
232 Views
Last Modified: 2012-06-27
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
Comment
Question by:xeon999
1 Comment
 
LVL 27

Accepted Solution

by:
negatyve earned 2000 total points
ID: 13970385
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question