// System.out.println("handleAnimateEvent: " + animationsCount );
document = canvas.raster.document;
// System.out.println("document.nActiveAnimations: " + document.nActiveAnimations );
// if(document.nActiveAnimations > 0)
{
rect = document.animate(getCurrentTime());
event = new SVGEvent(SVGEvent.EVENT_UPDATE, rect );
canvas.postEvent(event);
}
// If there are not finished animations, produce a new
// animation event.