Is there a way to automatically restore all property values back to how 
they were before an effect is run?

What I am doing is basically allowing someone to pass me an Effect 
object which I will play against a given target. 

I have no idea what the effect is but after it is finished playing I 
want to restore everything back to how it was before the effect ran so 
I can run the effect again or run another effect.

I dont really want to have to save every conceivable property on the 
target and then reset them, and I wondered if there is something in the 
Effect system that will do this for me.

Example, though its not needed in case where say its a FadeIn and the 
alpha is coming up to 1 but if you run a FadeOut the alpha runs to 0 so 
you need to restore the alpha value back to 1 so you can run again. A 
SlideIn effect is OK but a SlideOut effect leaves the target in the 
wrong place for the next run.

Although I could really handle these specific cases by writing specifc 
code I wanted something generic that would work for any conceivable 
Effect.

Tks



Reply via email to