Text Fields

By adding a text field, we can build on the idea from the last project. With a simple addition to our script, we can display a count of the number of times the clip has collided with the wall.

First, click on the text tool in the tool palette and create a text field on the stage and type a 0 (zero). Select the text box you have just created. Set the text type to dynamic text and type "count" in the var field of the properties panel. (See below)

Now, right click the small clip and select Actions. Replace the previous actionscript with the one below
view the resulting animation

Sample Projects