I am very good java script developer, but newbie to flash. I have started learning action script. I am reading code snippets at many places. I found that variable names starting with m_Variable_Name or _Variable_name. What does that mean when it starts with m_ or _ ? Can anyone throw a light on coding standard?
Sample code :
public class Person implements IPerson
{
private var m_name:String;
public function get name():String
{
return m_name;
}
public function set name(value:String):void
{
m_name = value;
}
}
Here are Adobe Coding Conventions.
Some people use m_
or _
to prefix member variables to distinguish them from local variables.
prefixes m_ is used as a prefix for member variables.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With