public var _testvar:Boolean = false;
public function set testvar(value:Boolean):void{
_testvar = value;
}
private function get testvar():Boolean{
return _testvar
}
I don’t understand why if my variable name is testvar not _testvar, it won’t compile. Actionscript really require that underscore symbol at the front. What’s the reason they design this way, why not just no underscore all the way. What’s the benefit of enforce that underscore?
Thanks.