Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Right now, when your movie loops over the opening animation, the text field is instructed to display the number representing the times the animation has played. The number is accurate, but it is not elegant user feedback. Let’s make the information in the text field more useful by adding some prose to the field to make a complete sentence.
1. | With the Actions panel and the timeline visible, select the loop frame (frame 2) in the actions layer of the timeline. |
2. | In the Actions panel, change the code that currently reads: info_txt.text = String(count); so that it reads: info_txt.text = "The animation has played " + String(count) + "x."; The plus signs are used to concatenate (or join) the literal text (in quotes) with the value of the count variable to form a sentence. |
3. |