htmlText and displaying graphics

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Erwin
Posts: 17
Joined: 29 Nov 2013, 17:03

htmlText and displaying graphics

Postby Erwin » 25 May 2014, 20:06

I have a text box that is displayed next to the avatar when a person types in a field. When the text is displayed, everyone in the room can see what was written. I also have a graphic that displays many emoticons. When a person clicks on an emoticon, that emoticon is displayed in the avatar's text box. The problem is that the graphic is only displayed on the screen of the person who chose it. The rest of the users in the room only see the name of the graphic.

Here is the code for the text:

Code: Select all

avatar.textBubble.message.text = msg;


Here is the code for the graphic:

Code: Select all

avatar.textBubble.message.htmlText = "<p><img src='icon14.png' width='58' height='58'></p>"


I cannot figure out what the problem is. I also tried to use a jpeg version of the graphic and that did not work either. What can I do to fix this problem?

Thanks.

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 22 guests