Coding in Flash

Tracing

Create a new file and manually enter the following code

on(rollOver){
	for (counter=0;counter<5;counter++){
		trace(counter);
	}
	}

As a result of the code you will see the following in the Output windows.

This trace technique is useful when you want to see what values your variable is (and was) assigned. By using trace() action you also may display values of properties for various objects.

Next