Log in

View Full Version : Space at the end of a text field?



jlizarraga
09-16-2008, 04:48 PM
Flash doesn't seem to render spaces unless there is a character following the space. Is there a a way to correct this?

I have a dynamic text field with 200px italic Arial Black, and load 1-3 character strings into it. Because the letters are italicized, part of the edge of the last letter gets cut off. I tried to correct this with a simple space at the end of each string, but Flash doesn't show the space(s) unless there is a character following it.

Please see the problem in action here:

http://sbbmwredesign.autofusion.com/

When the main Flash piece loads up, you can see the W in BMW being cut off.

Is there any way I can correct this?

Thanks for any responses!

jlizarraga
09-16-2008, 04:53 PM
P.S. - by "correct this", I mean is there any easy method, space or no space, to get these characters to avoid being cut off?

Medyman
09-16-2008, 05:01 PM
You could set the text field to autosize from the right.

http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary729.html

jlizarraga
09-17-2008, 07:57 PM
Thanks for the tip. I ghetto-rigged it by concatenating a few spaces and a period to the end of each string, with the period falling off the stage.