Changing images during transition

I have a lot of images all involved in moving using transition.to statements. At certain times I want to swap the images, which means using display.newImage, in my case.

How do I replace an image with a new image while it is being transformed by a transition call? Is it possible to have a new image acquire all the attributes of an existing image or will I need to maintain a lot more state information than I thought?

Thanks,

Matt. [import]uid: 8271 topic_id: 1926 reply_id: 301926[/import]

Ok, sorry, I worked this out myself. While I don’t believe there is advanced state info attached to the transition, as such, (please correct me if I’m wrong) it is possible to check the values of object during transition and cancel/replace the transition before its completion. As far as I’ve seen, passing an object to transition.to, for example, and then passing it to another transition.to before the first completes effectively cancels the first transition. More helpful docs than I initially appreciated here: http://developer.anscamobile.com/content/animation#transition.to_target_params_
[import]uid: 8271 topic_id: 1926 reply_id: 5670[/import]