Stimpson
02-09-2004, 08:20 AM
For some little thingy I'm working on I noticed something odd concerning getter/setters and inheritance, well was odd to me anyways ;).
I declared some getter/setters in a base class linked to an movieclip acting as a component. And they work fine inside that base class. Inside the base class another clip is attached, also an component, which is linked to an class which in turn extends the base class.
Now there is no issue with the internal component as such, exept that it just can't seem to access to getter/setters of it's superclass. Calling them on _parent works, and all other 'normal' superclass methods also, as do static properties.
I tried the same out with classes not linked to movieclips, and there the superclass getter/setters work fine in the subclass. So I guess there must be something going on there. Anyone knows more about this?
I declared some getter/setters in a base class linked to an movieclip acting as a component. And they work fine inside that base class. Inside the base class another clip is attached, also an component, which is linked to an class which in turn extends the base class.
Now there is no issue with the internal component as such, exept that it just can't seem to access to getter/setters of it's superclass. Calling them on _parent works, and all other 'normal' superclass methods also, as do static properties.
I tried the same out with classes not linked to movieclips, and there the superclass getter/setters work fine in the subclass. So I guess there must be something going on there. Anyone knows more about this?