Static Method Scope : Variable scope « Data Type « Flash / Flex / ActionScript






Static Method Scope

 

package {
  public class SomeClass {
    public static function staticMeth (  ) {
    }
  }
}
package {
  public class SomeClass extends SomeParentClass {
    public static function staticMeth (  ) {
      // Local variables, nested functions, and namespaces defined here
      // are accessible throughout staticMeth
    }
  }
}

        








Related examples in the same category

1.Instance Method Scope
2.ActionScript available scopes:
3.Class Level (Static) Variables and Methods are accessed by using the class name followed by the object name
4.Instance Level Variables and Methods are independent for each instance of the class
5.Function-Level Variables and Functions