<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Maybe we should add a switch to GoAsap that lets you use a "syncrhronized mode" or an "exact mode"?<div><br></div><div>m<br><div><br></div><div><br></div><div><br><div><div>On Aug 9, 2008, at 6:12 PM, Gil Birman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">At first glance, you'd think both of these would do the same thing. However, as discussed in a recent thread, GoASAP's timing isn't perfect. Most of the time, your tween will actually take slightly longer than the <i>duration</i>. In the unreliable example below, I start another tween of the same object and property after a delay. Contrast this to the reliable example where an actual sequence is created. Most of the time, when using the unreliable example the second tween will begin before the first ends and thus one of them cancels the other out.<br> <br>// UNRELIABLE<br>// shape is a sprite or whatever<br>shape.alpha = 0.5;<br>new HydroSequence( [ { target: shape, alpha: 0, duration: 1 }, { target: shape, alpha: 1, duration: 1, delay: 1 } ] );<br><br><br>// RELIABLE<br> // shape is a sprite or whatever<br> shape.alpha = 0.5;<br> new HydroSequence( { target: shape, alpha: 0, duration: 1 }, { target: shape, alpha: 1, duration: 1 } );<br><br>In my testing, there is no telling what the alpha will be after the unreliable example completes. Is this the expected behavior?<br> </div> _______________________________________________<br>GoList mailing list<br><a href="mailto:GoList@goasap.org">GoList@goasap.org</a><br><a href="http://goasap.org/mailman/listinfo/golist_goasap.org">http://goasap.org/mailman/listinfo/golist_goasap.org</a><br></blockquote></div><br></div></div></body></html>