# Error #1023: Incompatible override

**URL:** <https://forum.kirupa.com/t/error-1023-incompatible-override/227022>\
**Category:** Uncategorized\
**Created:** [May 26, 2007, 12:34am UTC](https://forum.kirupa.com/t/error-1023-incompatible-override/227022 "2007-05-26T00:34:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyp](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/skyp/32/2681_2.png) [@skyp](https://forum.kirupa.com/u/skyp)\
**Post date:** [May 26, 2007, 12:34am UTC](https://forum.kirupa.com/t/error-1023-incompatible-override/227022/1 "2007-05-26T00:34:59Z")

</div>

**override** protected function draw(event:Event = null):void {  
ReferenceError: Error #1065: Variable ClockTest is not defined.

the code is from \<\<Advanced Actionscript 3.0 With Design Patterns\>\>

```auto

  /** 
  * 
  * ABSTRACT METHOD TO BE OVERRIDDIN 
  * 
  **/ 
  protected function draw(event:Event):void { 
 
                } 
 
 /** 
  * 
  * **OVERRIDE** METHOD 
  * 
  **/ 
  **override** protected function draw(event:Event = null):void { 
                         var time:Time = _data.time; 
 
                        // Set the rotation of the hands based on the time 
                         // values. 
                         _hourHand.rotation = 30 * time.hour + 30 * time.minute / 60; 
                         _minuteHand.rotation = 6 * time.minute + 6 * time.second / 60; 
                         _secondHand.rotation = 6 * time.second; 
                 }

```

wondering any one can help? thanks.
