Chapter 3

introducing actionscript

commission1.fla

first version of the script for computing a 10% commission.

 

commission2.fla

second version of the script for computing a 10% commission.

 

count-chars.fla

the script to count occurrences of a target character in a string.

 

find-char.fla

the scripts tolook for a target character in a string.

 

strings.fla

some very simple examples of string operations, including the loop to replicate a string.

 

In each of the movies above, the script is attached to the first frame and uses trace to produce its output. The movies have no graphic content and won't appear to do anything in a browser. Open the FLA in Flash and use the Control>Test Movie command.

For the repayment calculator example, see the complete version in Chapter 4.