TextField Question

  • massfrequency
  • Student
  • Student
  • User avatar
  • Posts: 78

Post 3+ Months Ago

is there anyway to get the x coordinate of the caret w/ in a text field... i know of Selection.getCaretIndex() ... but this simply returns the character value by which the caret is located....

and i know you could try to derive a formula using Selection.getCaretIndex() to estimate the x value... however this will not work with different fonts... any ideas???
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • yuriythebest
  • Banned
  • Banned
  • User avatar
  • Posts: 143
  • Loc: Ukraine

Post 3+ Months Ago

can you ellaborate a little on what you're trying to do, maybe I can help.
  • massfrequency
  • Student
  • Student
  • User avatar
  • Posts: 78

Post 3+ Months Ago

well im trying to insert smililies into a flashmx textarea using the >img> tag, but flash does not support images in line w/ text.. like so :twisted:, and thusly i would have to use hspace and a negative vspace to correctly place the image in line w/ text.. unless anyone knows of a better way..
  • contstrictor
  • Novice
  • Novice
  • contstrictor
  • Posts: 26

Post 3+ Months Ago

I used img tags in a textArea component i dont know if that's what you're using but i rendered the textArea as html and used normal html markup. I dno't know what design and if components will fit in well but maybe you should give that a try.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 12 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.