ADOBE ANIMTE variable spacing in text field

New Here ,
Mar 11, 2021 Mar 11, 2021

Copy link to clipboard

Copied

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>' ;
	
}
TOPICS
ActionScript

Views

64

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Mar 12, 2021 Mar 12, 2021

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines