Skip to main content
Participant
March 11, 2021
Question

ADOBE ANIMTE variable spacing in text field

  • March 11, 2021
  • 1 reply
  • 183 views

Hi, 

 

I am using the following code to set the font size according to my textfield length. I was trying to do the same with letter-spacing but with no luck. Any suggestions?

 input.text = "12121212121212jkjkjkjkj12";
	   
	   
	   trace(input.length);
	  
if (input.text.length <= 22)
	
{
	   
      del.htmlText = '<font size="40">' + input.text + '</font>';
	
}

if (input.length > 22)
	
{
	   
      del.htmlText = '<font size="22">' + input.text + '</font>' ;
	
}
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 12, 2021

flash player doesn't support for the letter-space tag,