Your understanding is correct.  In the email description it didn't assign the 
value to super.data.

From: [email protected] [mailto:[email protected]] On Behalf 
Of Amy
Sent: Monday, January 26, 2009 5:03 AM
To: [email protected]
Subject: [flexcoders] Re: Explain "override public function"


--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Alex 
Harui <aha...@...> wrote:
>
> If your override is exactly as you posted:
> override public function set data(value:Object):void { }
>
> then the override never passed the value to the base class
implementation so the value wasn't stored and the debugger will read
from the "get data()" function and show you a null.
>
> In the base class the setter does this:
>
> _data = value;
>
> And the getter does this:
>
> return _data;
>
> where _data is defined as:
>
> private var _data:Object;

I'm pretty sure the function he posted included
super.data=value;

Wouldn't that pass the value to the base class implementation?

Just making sure I'm not confused and he doesn't get unnecessarily
confused on this.

Thanks;

Amy

Reply via email to