From the tutorials gone through net i always seen that the Authors have been using a _ (underscore) whenever declaring a private Variable inside ActionScript ValueObjects .
Can you please tell me why is the underscore(_) required when dealing with private variables .
Waiting for your replies .
Thanks in advnace .
This is just a naming convention adopted in coding and a best practice ....nothing more than that..
Mostly in Flash we used to adopt this and even follwoed in Flex as well.
Mostly it significance is in using the set and get methods in Flex...see below
private var _dataProvider:ArrayCollection;
public function set dataProvider(data:ArrayCollection):void
_dataProvider = data;
Check the below lonks you will get most of what I am talking to...
You can't have a variable and a getter/setter with the same name.
Adobe Flex SDK Team