![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Some built-in ActionScript classes have what are called class members (or static members). Class members (properties and methods) are accessed or invoked not on an instance of the class but on the class name itself. That is, you don't create an instance of the class in order to use those properties and methods.
For example, all of the properties of the Math class are static. The following code invokes the max()
method of the Math class to determine the larger of two numbers.
var largerNumber = Math.max(10, 20);
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |