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 [email protected], 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
>
>
>
>
>
>
_____________________________________________________________________
_______________
> Be a better Heartthrob. Get better relationship answers from
someone who knows. Yahoo! Answers - Check it out.
> http://answers.yahoo.com/dir/?link=list&sid=396545433
>