TextField Question

  • massfrequency
  • Student
  • Student
  • User avatar
  • Joined: Oct 03, 2003
  • Posts: 78
  • Status: Offline

Post May 2nd, 2005, 5:14 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 2nd, 2005, 5:14 am

  • yuriythebest
  • Banned
  • Banned
  • User avatar
  • Joined: Feb 24, 2005
  • Posts: 143
  • Loc: Ukraine
  • Status: Offline

Post May 5th, 2005, 6:55 am

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

Post May 16th, 2005, 8:36 pm

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
  • No Avatar
  • Joined: May 23, 2005
  • Posts: 26
  • Status: Offline

Post May 25th, 2005, 6:59 am

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 52 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.