<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for the feedback on the cycles design Sebastian...<div><br></div><div><blockquote type="cite"><span class="Apple-style-span" style="color: rgb(31, 73, 125); font-family: Calibri; font-size: 15px; ">Will there also be an update event for the whole sequence?</span><br></blockquote><div><br></div><div>You mean a pulse-based update event? </div><div>I don't know, and I'm not really sure it's feasible to be honest. :(</div><div><br></div><div><br></div><div>Here are the problems involved:</div><div><br></div><div>1. Typically you don't want a group's UPDATE to fire until all children have updated first. Say you're running a complicated sequence with lots of parallel groups of tweens – whatever your update listener is doing, you normally don't want to end up with a case where only some of the child tweens have updated when your event fires or your code can't check each child's position accurately.</div><div><br></div><div>2. Syncing is really complex.</div><div>Any IUpdatable can specify its own pulseInterval so it's complicated... what if one tween has a pulse of 33 and another has a pulse of 100? By default the group wouldn't fire update until the 100 pulse completed – so now the tracking has to not just count child updates, it has to track exactly which children have updated too. </div><div><br></div><div>3. SequenceCA adds more complexity.</div><div>SequenceCA tracks "trailing tweens" in a private group, which would have to be factored into this system. So over all, an accurate UPDATE event would require really quite a bit of extra code in the core classes.</div><div><br></div><div><div>4. Events are slow.</div><div>LinearGo gets around this by not firing events unless there are listeners for them. Update events are worst, they truly do affect performance. I'd like to avoid a situation where every child tween has update events subscribed in groups. Callbacks are slightly faster but it's still an issue.</div><div><br></div><div>-</div></div><div><br></div><div>Here's an alternative:</div><div><br></div><div>We could subclass addEventListener() in PlayableGroup and SequenceBase and instantiate a very simple private IUpdatable instance when UPDATE is subscribed. This instance could accept an update callback and be used to fire the UPDATE event from the group or sequence. </div><div><br></div><div>The docs would have to mention though, that this UPDATE would not necessarily be synced with child items, and may fire before all items have updated.</div><div><br></div><div>-</div><div><br></div><div>Thoughts? Sorry this is such a pain but, as you can see there are reasons why it's omitted. :)</div><div><br></div><div>-m</div><div><br></div><div><br><div><html>On Mar 23, 2008, at 2:58 PM, Sebastian Weyrauch wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div lang="DE" link="blue" vlink="purple" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div class="Section1"><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Hi,<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">think this is a good idea. A good and tidy structure is more important than a "easier" assignment.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Besides my question in the last mail:<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">I read you implemented a pause and resume event in 0.4.5. For the whole sequence and the single steps, right?<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Will there also be an update event for the whole sequence? (I know how to implemented, but a Go event would be nicer)<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">sebastian<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "><o:p> </o:p></span></div><div><div style="border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-top-style: solid; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding-top: 3pt; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; "><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; ">Von:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; "><span class="Apple-converted-space"> </span><a href="mailto:golist-bounces@goasap.org">golist-bounces@goasap.org</a> [<a href="mailto:golist-bounces@goasap.org" style="color: blue; text-decoration: underline; ">mailto:golist-bounces@goasap.org</a>]<span class="Apple-converted-space"> </span><b>Im Auftrag von<span class="Apple-converted-space"> </span></b>Moses Gunesch<br><b>Gesendet:</b><span class="Apple-converted-space"> </span>Sonntag, 23. März 2008 19:18<br><b>An:</b><span class="Apple-converted-space"> </span>Mailing list for the Go ActionScript Animation Platform<br><b>Betreff:</b><span class="Apple-converted-space"> </span>[Golist] cycles design continued...<o:p></o:p></span></div></div></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Here's one more little puzzle piece on this: <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">I'm thinking that sometimes people might want to repeat tweens from the start, not cycle them back and forth. <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Since this gets pretty elaborate and clutters LinearGo's code quite a bit, it might be prudent to create some kind of cycle handling class that could be instantiated by the tween on start if cycles isn't 1..?<o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div></div></div></span></blockquote></div></div></div></body></html>