package { import flash.display.Sprite; /** * Example class * * This is an example class in ActionScript 3.0 with some basic code conventions. * * @author Foo Bar * @date 2011-10-24 * @edit 2012-10-25 Foo Bar */ public class Example extends Sprite { // // Constants // private static const FOO_BAR:Boolean = true; // // Variables // // Public variables public var foobar:String; // Protected variables protected var barfoo:String; // Private variables private var bar:String; // Private variables for properties private var _foo:String; // // Constructor // public function Example() { } // // Properties // public function get foo():String { return this._foo; } public function set foo(value:String):void { this._foo = value; } // // Methods // } }