Functions / stop
stop([jumpToEnd])
stop( )
stop(bool jumpToEnd)

Method to stop the animation of object
stop( )
return: object
Code
<script type="text/javascript">	
	function start_1(idCanvas)
	{
		animate.call(jc('#myRect_1'));
		function animate()
		{
			this.animate({rotate:{angle:360,x:150,y:150}},4000,
				function(){
					animate.call(this);
				});
		}
	}
	function stop_1(idCanvas)
	{
		jc('#myRect_1').stop();
	}
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.rect(10,10,50,120)
			.id('myRect_1');
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
stop(bool jumpToEnd)
return: object
Code
<script type="text/javascript">	
	function start_2(idCanvas)
	{
		animate.call(jc('#myRect_2'));
		function animate()
		{
			this.animate({rotate:{angle:360,x:150,y:150}},4000,
				function(){
					animate.call(this);
				});
		}
	}
	function stop_2(idCanvas)
	{
		jc('#myRect_2').stop(true);
	}
	function onload_2(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.rect(10,10,50,120)
			.id('myRect_2');
	}
</script>
<canvas id="canvas_2" width="250px" height="265px">
</canvas>
View