0 Replies Latest reply on Sep 30, 2011 8:58 PM by rexdtripod

    HTML formatted text in Spark

    rexdtripod Level 1

      I had a line in my old halo code that added new chat messages to a TextArea when they came in.  Each line had some formatting in it - like changing the color of the name of the user who sent the message.  Any thoughts on how to implement this in spark?  I tried the line below but spark.utils.TextFlowUtil doesn't know anything about a <font> element - just flow stuff.  How would this be done?



      txtArea.textFlow += spark.utils.TextFlowUtil.importFromString("<font color='#00BBFF'><b>" + e.msgObject.name + ": " + "</b></font>" + e.msgObject.msg + "\n");