javascript - How to create ad-hoc tweens sequence without recursion in KineticJS? -


is possible create tweens sequence in kineticjs according data saved in array without recursion?

this current solution including recursion:

function tweenfunc( image ) {   setglobalcoordinates();   tween = new kinetic.tween({     node: image,      duration: 1,     x: x,     y: y,     rotation: rot,     onfinish: function(){       if ( counter++ < arr.length )       {         tweenfunc( image );       }     }   });   tween.play(); } 

i have solution creates tweens before first animation , following tweens start final position of predecessor. project includes animation of 4 images in same time many position sequence.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -