I have a class hierarchy of classes as follows:

MyBaseTextInput extends TextInput
{
override public function set text(value:String):void
{
// my base code here
}
}

MySpecialTextInput extends MyBaseTextInput
{
override public function set text(value:String):void
{
// my special code here
}
}

Okay, in MySpecialTextInput I am overriding the set text function and
NOT calling super.text = value;  So, why when I have
MySpecialTextInput on an mxml view does the set text in
MyBaseTextInput get called?  This is causing me to copy/paste the code
from MyBaseInputText into MySpecialTextInput, modifying as needed, and
then have MySpecialTextInput extend TextInput instead of
MyBaseTextInput.  I REALLY HATE COPY/PASTE PROGRAMMING!

Can someone please shed some light on why the super class function is
being called even when I'm not calling super?

Thanks,
Dale

Reply via email to