Hi peeps, i think my post from a while ago, is related to this post: http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg17995.html
It completely falls under zeh's opinion of overcomplication :), but i think there is a time and a place to either overcomplicate things or keep it simple :)) (but keeping it simple is soooooo hard). It light of that, i would only overcomplicate things and apply a "sequential animation calling design pattern", if it is necessary to for example, exchange the order of effects at runtime, or support effects that you haven't thought of and that are added by others. Soo I by no means wish to hijack this thread, but i have a 5 week vacation coming up, and was still thinking on starting on what i called in my previous post some kind of sequencer framework, so beside the point which is the best solution for a simple foto wipe, it might be nice if I knew if others like you might like to have the thing i described in my post. Im talking about 2d sequences, but they could be 1d sequences or whatever. greetz Hans On 7/24/06, jcarlos <[EMAIL PROTECTED]> wrote:
I think that there is time and occasion for each line of thought If you only want a serie of movements in time the solution proposed by Zeh is great and I tested it and it works fine, better would it be if he upgrade them to AS 2.0 and AS 3.0 -) But that are projects where we want some decision logic tree and solutions like those from Marty and Gerry seems more appropriate, in fact now that I begin to see the the problem clearer What I´d like to have to some suggestions is not to use some package like animationpackage ( it is fine the suggestion from marcelo serpa and I´m using it too) but as a provocative study matter how to develop one simple framework in terms I´ve thought first ( please excuse me if I´m tin the non-sense field here) >From the framework´s user point of view he would only push "Animation" objects in some tree structure. and I begin wondering about to use some TREE to represent it where the nodes at the same level would be the "Animation objects" to run at the same time and going to low level the animation following the sequence from that node At first sight ( just exploring ideas) the Animation Class would have as properties the Object to be animated the desired "Actions" (Tween/Transition etc) Array to be applied to the Object Null/Child "Animation Objects" Array The logic I´d like to implement would the root object starts its job and when finished fire all ( if any ) its children nodes asynchronously and each node would "wait" the effect end before going down into low leves Does it maky sense ? -) João Carlos ----- Original Message ----- From: "Martin Wood" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Sunday, July 23, 2006 6:29 PM Subject: Re: [Flashcoders] sequential tweens ? >> Martin, do not take this personally, I don't mean to sound rude or >> anything, I'm sorry in advance if I do, and your code totally makes >> logical sense and it's 100% correct, but... WHY would someone need so >> much code just to produce sequential tweenings? A bunch of specialized >> functions just to make it work? And then suppose he has an slightly >> different animation he wants to do at the same time, will he need new >> functions, or add parameters to those functions, and so long and so >> forth? Why something so convoluted for something so simple? Simply >> because the tweening doesn't support delays? :( > > don't worry i don't take it personally its only programming :) > > To me it doesn't seem complicated, just a couple of functions, nothing > special in either function. > > If it doesn't fit the requirements, so be it. > >> Sorry for the rant, but really, there's a moment you have to use the best >> tool for the task - and I don't mean only the easiest. The tweening >> classes included on Flash are cool and all that, but they're too basic, >> too raw. Why you'd need dozens of lines just to do something that can be >> done with one single line in a pretty straightforward way is beyond me. >> Most of the times I have to build sites, there's so much having to be >> animated correctly that if I resorted to functions and complex callbacks >> any time I needed some kind of sequence or delay, my code would be a >> complete mess and the sequence would be unmaintainable. Now, with delays >> it's as easy as it gets. It's easier to read, debug, write, change, etc. > > Don't be sorry, if it upsets you then best to let it out, bottling things > up isn't good for the soul :) > > Anyway, to consider if its easier to change then it really depends on how > you want to change it. In some cases yes its undoubtedly easier, in other > cases i think it could be harder but I don't know the API of your tweening > classes so I cant say. > > What if i wanted to trigger something when each tween ends? What if i want > to perform an action depending on which tween has ended? > > Each solution has its pro's and con's so its worth understanding the > options and the trade offs. > > Like i said i don't find functions or callbacks complicated, its the bread > and butter of programming. The code i showed is an idiom that I've used on > a number of occasions, not just for sequencing animations but for various > things that need treating in a consequential manner and aren't all > necessarily time based. > >> My advice is to still use another solution. MC Tween, laco's, Fuse Kit, >> it doesn't matter. Any of them will do the trick. > > Mine too :) > > I don't know any of the other animation kits so I couldn't vouch for their > ease of use, size when installed or performance, but I've heard good > things about those you mention. > > anyway..shop around, its always the way to get the best deal and the > solution that fits your needs. > > Martin. > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com