Nov
9
9
CommandQueue – memento, undos and more
© 2010 pajamacode | Theme by DemusDesign, Theme Lab, and Search Optimization | Powered by WordPress
I’ve been experimenting with creating a sort of queue pool of commands that could be executed at any specified interval. But rather than creating a glorified tween sequencer, I wanted to have it be more generic and be able to “save” the previous state. The way I did this is via the often blogged about deep object copying using serialization. Unfortunately, it’s not possible to deep object copy a sprite or MovieClip directly so instead I added a type or proxying as well.
This is really the 0.1 verision of the class with quite a few bug fixes probably needed down the road but it shows some of the over-all concepts.
filed under: Scripts | comments (0) | read more...
