6 Replies Latest reply on Feb 28, 2011 3:43 AM by tatiana1

    x, y position of a character inside a dynamic textbox

    tatiana1 Level 1

      Hi, I'm working on an AS2 chat and I'd like to be able to place an emoticon at a specific location within a textbox. Is there a way of calculating a specific character's x & y position? I've even tried using textWidth and textHeight to calculate a specific location within the textbox, but the coordinates never really match. Keep in mind I have a multiline, wordwrap textbox with dynamic text in it. I've tried using monospace fonts and true type fonts, embedded and not, but the result is always very approximate, if not completely off. Any ideas?