2/3/2011 7:42:06 AM
Title:
Rendering Smiley in Flex FMS chat Application
Hello All
I am new to flex. And I am developing Text Chat Application with Flex and FMS,
I want to insert smileys within my text chat .
When I googled i got two links as
http://www.bytearray.org/?p=521
http://labs.influxis.com/?p=838 // with FMS chat
Please go though it and as they told
I downloaded the file smiley renderer from link "http://code.google.com/p/smileyrenderer/downloads/detail?name=SmileyRenderer%200.1.zip&can=2&q="
Now I made New Flex 4 Project
And copy that folders to src folder and i copied the code from the page (http://www.bytearray.org/?p=521) and paste it in to main(application.mxml) mxml file but its giving me lots of error.
I am helpless. Can u please tell me how to configure that file or what i am missing.
Please tell me I am struggling from one day and Client Is waiting
Very Thanks in advance
Tyson
Points: 680
Posts:0
2/3/2011 9:39:44 AM
why dont you use html text in your chat and insert smiley by using the image tag.
The above link of smiley works only above flash player 10. So you need to user flash 10 sdk for compiler.
2/4/2011 3:35:46 AM
Ok
Thank You For Reply Tyson. Can you Please explain how can I do that properly?
I tried for that but what happend is, the text coming serially and smiley come 1 line down and the next line come down to that smiley's line. Do u have any solution for that
Very Thanks in advance
Please reply
Tyson
Points: 680
Posts:0
2/4/2011 7:23:26 AM
you can use the code like this. Kepp the smiley image size small so that it can fit into line of text. Around 16 x 16 pixels.
myChatTextBox.htmlText ="John : My message text <img src='mySmiley.jpg'>"