O'Reilly logo

Essential ActionScript 3.0 by Colin Moock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scope Summary

The following code summarizes ActionScript available scopes:

package {
  // Code here is in the global scope

  public class SomeClass {
    // Code here is in the SomeClass scope

    public static function staticMeth ():void {
      // Code here is in the staticMeth scope
    }

    public function instanceMeth ():void {
      // Code here is in the instanceMeth scope

      function nestedFunc ():void {
        // Code here is in the nestedFunc scope
      }
    }
  }
}
// Code here is in the global scope

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required