Hi

The '_' preceding a variable is used as a best practice in private 
fields because the getters and setters can't have the same name as the 
variable.

private var _name:String;

public function set name(name:String):void{this._name = name;}

public function get name():String{return this._name;}

Scott wrote:
>
> … being used for in flex code? I see example code out there that has 
> variables like _myVar = myVar, what is this doing?
>
> TIA!
>
>  

-- 
Leonardo Moreno Guzmán
Ingeniero de sistemas y telemática | Asesor soluciones informáticas
*cell-phone:*   311-3390386
*e-mail:*       [EMAIL PROTECTED]
*site:*         http://leo.logtar.com/profesional/

begin:vcard
fn:Leonardo Moreno
n:Moreno;Leonardo
adr:;;;Cali;;;Colombia
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ingeniero de sistemas y telem=C3=A1tica
tel;cell:3113390386
x-mozilla-html:FALSE
url:http://leo.logtar.com
version:2.1
end:vcard

Reply via email to