ActionScript 3.0, Flash 9 Public Alpha
I’m making use of custom get & set functions within my class. For example:
public function set myProperty( newValue:Number ):void
{
// do custom stuff
_myProperty = newValue;
}
these work beautifully when I call myObjectName.myProperty = 10; from outside my class. However, what if I want to execute this function from within my class without cutting and pasting all of the code redundantly into another internal function? I tried this.myProperty = 10, but it didn’t work (it properly changed the value, it just doesn’t execute the set function).
Thanks!
~JC