figured it out - i just needed to declare the return type as :void on the set
public override function set x(n:Number):void { super.x=n; //works } On Thu, Jun 26, 2008 at 11:32 AM, Jason Van Cleave <[EMAIL PROTECTED]> wrote: > I have a class that extends Sprite. When the x value of the Class is > changed I want to know so I can change another value. > > So I tried > > override public function set x(n:Number) > { > super.x=n; > //added functionality would happen here > } > but I get "Incompatible override" > > So I could build a setX method but this wouldn't prevent Class.x from being > directly changed > > public function setX(n:Number) > { > x=n; > //added functionality would happen here > } > > Any suggestions? > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders