• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

130

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
Community Expert ,
Mar 12, 2021 Mar 12, 2021

Copy link to clipboard

Copied

LATEST

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

Votes

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