Does flash have properties like C#? Or do I have to create getters and setters like java?
I.E. Can I do this in flash:
public int UserID {get; private set}
Does flash have properties like C#? Or do I have to create getters and setters like java?
I.E. Can I do this in flash:
public int UserID {get; private set}
You will have to create getters and setters. For example,
public function set myValue (value:Number):void
{
_myValue = value;
}
public function get myValue ():Number
{
return _myValue ;
}
private var _myValue : Number;
For a read-only property provide only a getter.