Domo motion engine has been updated to beta 2 and improved overall speed and added three overwrite modes (was two modes before).
Download Domo motion engine beta 2 here (for Flash CS4 & Flex 3).
I have also done quick size comparisons to other popular tween engines and Domo motion engine is 7KB smaller than Tweenlite and 18KB smaller than Tweener although they have more functions.
I have been using Domo engine for all of my projects recently and as far as I can tell, it is very stable so feel free to use in your production and I am planning to release it as open source if more people demand to use it.
The instruction should be the same as before, just the overwrite mode is different and it has 3 modes now:
Domo.OVERWRITE_NONE – not to overwrite any tweens.
Domo.OVERWRITE_ALL – overwrite tweens with the same target object.
Domo.OVERWRITE_AUTO – only overwrite the same properties in tweens with same target.
And default to Domo.OVERWRITE_AUTO, e.g.-
1 2 3 4 5 | import com.xllusion.motion.Domo; // It will move "mc" x position to 150. Domo.addMotion(mc, {duration:1, x:100, y: 100}); Domo.addMotion(mc, {duration:1, x:150, overwrite:Domo.OVERWRITE_ALL}); |
1 2 3 4 5 6 | import com.xllusion.motion.Domo; // It will move "mc" x position to 150 but also y position to 100 // since it only overwrites the same properties. Domo.addMotion(mc, {duration:1, x:100, y: 100}); Domo.addMotion(mc, {duration:1, x:150, overwrite:Domo.OVERWRITE_AUTO}); |
Let me know if there is any bugs or want to add some new features:)
No user commented in " Domo Motion Tween Engine Beta 2 "
Follow-up comment rss or Leave a TrackbackLeave A Reply