Questions about setters
P T Withington
ptw at pobox.com
Tue Jul 29 07:53:19 PDT 2008
On 2008-07-25, at 05:52EDT, Peter Hall wrote:
>> Not sure, but there might be something in the super syntax (eg,
>> "super.x
>> = 10") that
>> would do this. Hasn't been spec'd yet. Not sure what AS3 does.
>>
>
>
> In AS3 it's like this:
>
> override function set bar (value) {
> super.bar = value;
> }
So, can I say:
override function set * (id, value) {
note('setting ' + id + ' to ' + value);
super[id] = value;
}
? (It seems currently, AS3 does not allow `super[]`?)
More information about the Es4-discuss
mailing list