ASDoc doesn't care about private vars, so it shouldn't/doesn't matter at all.

Here's more or less what I use:

// static constants

// private vars

// public vars

// CONSTRUCTOR

// override protected methods
// protected methods

// private methods

// override public methods
// public methods

// implicit getter/setters

regards,
Muzak

----- Original Message ----- 
From: "nathanpdaniel" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Monday, September 10, 2007 4:19 AM
Subject: [flexcoders] Re: private / getters and setters


If you're ever interested in using ASDoc to document your classes,
it states you should name the variable, followed by the setter, then
the getter.
i.e.:
private var _a:Object;
public function set a(value:Object):void
{
 _a = value;
}
public function get a():Object
{
 return _a;
}

This would be solely for documentation and future developers though -
 doesn't really effect your code either way! :D

--- In flexcoders@yahoogroups.com, Sheriff <[EMAIL PROTECTED]> wrote:
>
> what is the best practice for this, show i always have the private
variables on top and then getters/setters later or just group both
of them right after the other
>
> private var _test:Number
>
> //Constructor here
> //events etcc
> //getters and setters or
>
> //construct
> //vents
> //private var_test:Number
> getters/setters
>





Reply via email to