Variable named index
(Display Figure 14.)
The counter variable named index now appears between the square
brackets in Figure 14.
The value of the counter variable named index:
- Will be used
as the numeric index
- Causing the program to select the next penguin
object in the array during each iteration through the body of the loop.
Once that penguin object is selected, the code in Figure 14 will:
- Cause its opacity property to be set to 100%
- Causing the penguin to become visible
over a default time span of one second.