6 Replies Latest reply on Jun 3, 2011 9:42 AM by deepakflash

    Display chat smiley in dynamic textfield

    deepakflash

      I am creating a chat application. I want my smileys to be displayed INLINE in my sentences (just like in a regular chat). But it doesn't. It looks all  scattered and messed up

      Please refer to this screenshot. Thats how I would like my smileys to be displayed in my output textfield


      But this is how it appears. (Screenshot)

      Here is a screenshot of my dynamic textbox inside my FLA

      The chat messages will be displayed bottom-to-top in the output textbox.

       

      This is the order in which I type msgs into my input textfield:
      Hello {followed by an hand waving smiley}
      This line will have a smiling face {followed by a smiling face}
      this line will have sad face {followed by a sad face}

       

       

      So that will be...

      Hello <img src='smily_imgs/handwave.gif'> //here the handwave is supposed to appear animated, but it doesn't

      This line will have a smiling face <img src='smily_imgs/smile.jpg'>

      this line will have sad face <img src='smily_imgs/sad.gif'>

       

      var myhtmltxt = outputbox.htmlText;

      outputbox.htmlText = inputbox.text+myhtmltxt+"<br/>";

       

       


      I even tried specifying width and height in the <img> tag. But still doesn't work