My first question is what are you trying to achieve by duplicating the
title variable in the subclass, it would on the face of it seem a
little pointless? If you need to titles use an array or call them
different things so as to disambiguate them.
However, have you tried writing a setter or getter on the subclass
> package com.xyz
> {
> [Bindable]
> public class Bar extends Foo
> {
> public var description:String;
> public function set title(s:String):void{}
> public function get title():String{}
> }
> }
I think there is also an override keyword you could investigate.
Best solution is to design your objects in such a way that avoids
these sorts of clashes.
hope that helps
SP
--- In [email protected], nhid <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Lets say I have a VO class Bar.as to be extended from Foo.as VO
class. I
> get this error at variable "title" (see code below):
>
> Overriding a function that is not marked for override.
>
> How do I resolve this? I saw Adobe's link saying I should remove
[Bindable]
> from base class, I did but that did not resolve the problem. Any
suggestion
> is appreciated.
>
> thank you.
>
> **********************************
> // Foo.as
> package com.xyz
> {
> [Bindable]
> public class Foo
> {
> public var title:String;
> }
> }
>
> // Bar.as
> package com.xyz
> {
> [Bindable]
> public class Bar extends Foo
> {
> public var description:String;
> public var title:String;
> }
> }
>