Skip to main content
Known Participant
November 16, 2006
Question

changing text spacing on input text fields

  • November 16, 2006
  • 4 replies
  • 401 views
It appears to me that the text spacing tool ( A\V ) in the properties inspector does not work on input text fields. All other tools do seem to work though.

I'm creating a form to be used by a classroom instructor to show students how each of the 200+ input text fields should be filled in. The months, days and years are individual cells. Currently, for the date cells, you must click on each cell, type in the number, click on the next cell, type in the number, etc. It would be nice to avoud the mouse click between theses inputs.

What I would like to do is spread out an input text field that will accept 4 characters (for the year). The character spacing is needed to align the characters up with the graphical input blocks.

Any ideas?


Thanks for helping.
This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
December 11, 2006
i'm not sure what you're doing twisted (because i didn't download your fla), but if logeye is using cell to mean textfield, then using the onChanged method of textfields and Selection.setFocus() allows a user to seemlessly move from textfield to textfild without clicking (after clicking on the initial textfield).
Inspiring
December 10, 2006
ok looks like this is the way to go:

var my_fmt:TextFormat = new TextFormat();
my_fmt.letterSpacing = 3;
textBlock.setTextFormat(my_fmt);

sound right?
Inspiring
December 7, 2006
anyone?
Inspiring
December 7, 2006
yeah im getting the same problem when assigning a string of text to an input box,

see http://home.exetel.com.au/twistedpancreas/images/spacing.fla

is there something to fix that?

thanks