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

How to show words effect

Explorer ,
Jan 05, 2011 Jan 05, 2011
I have a word,its content is follows:
var txt:String="abcdefg";


I want to show word from the first letter to the last letter,the word effect is one by one. For example,at the beginning I only show the first letter 'a',the 'a' size is big,such as 30,and then the letter 'a' size minish gradually to 20.Then show the second letter 'b',first,the letter 'b' size is big also,such as 30,and then the letter 'b' size minish gradually to 20,and the letter 'b' is behind the letter 'a',and so on with letter 'c'. When all letters show,the effect stops.


I have puzzled with it for several days.I don't know how to realize above function. Anyone could tell me how to do it,an example code is better.


Thanks in advance!

TOPICS
ActionScript
358
Translate
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 ,
Jan 06, 2011 Jan 06, 2011
LATEST

If you generate individual letters into separate Sprites, you can tween them in sequence to achive what you want, using just code.

Translate
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