
      public function onFrame(elapsed:Number):void
      {
         trace("Frame happened, and " + elapsed + "ms passed since last time.");
      }
      
      protected override function onAdd():void
      {
         ProcessManager.instance.addAnimatedObject(this);
      }
      
      protected override function onRemove():void
      {
         ProcessManager.instance.removeAnimatedObject(this);
      }
   }</pre>
   
   <p>Because you have to implement the above logic for every animate