# ZigoEngine cycles and function callback together

**URL:** https://forum.kirupa.com/t/zigoengine-cycles-and-function-callback-together/246533
**Category:** flash
**Created:** [December 12, 2007, 1:39am UTC](https://forum.kirupa.com/t/zigoengine-cycles-and-function-callback-together/246533 "2007-12-12T01:39:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![litz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/litz/32/2966_2.png) [@litz](https://forum.kirupa.com/u/litz)
#### Post date: [December 12, 2007, 1:39am UTC](https://forum.kirupa.com/t/zigoengine-cycles-and-function-callback-together/246533/1 "2007-12-12T01:39:06Z")

</div>

From what I understand, this should work:

ZigoEngine.doTween(myobj, ‘\_rotation’, -15, speed, ‘easeOutQuad’, delay,  
{scope: this, func: “soundHammer”, args: args, cycles: \_root.cycles}  
);

How do I keep the cycles active, and also call a function at the end of each cycle/tween? Right now I can remove the soundHammer call back and the tween will continue to cycle, and if I remove the cycle soundHammer is called properly, but obviously it doesn’t cycle anymore.

Anyone familiar enough with Zigo to help me out? Thanks.
