8.1 Function modifiers

When allowed by the context of the definition, the following attributes modify a function definition:

Access control and visibility control namespaces specify the namespace part of the function name.

The static attribute may only be used inside a class definition and causes the function to become a trait of the class object rather than the instance object.

The final attribute may only be used on a non-static function definition inside a class. A function modified by final cannot be overridden.

The override attribute may only be used on a non-static function definition inside a class. A function modified by override will override a method with the same name and signature as a non-final method of a base class.

The native attribute may be used to indicate that the function is implemented in an implementation-defined way. The compiler should generate native stubs for functions that have this attribute.


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/specs/actionscript/3/as3_specification66.html