Is it possible to have a call back for Events.AnimationEnd when changing the state of a layer? In other words, call a function when the state switch ends?
I tried this and it's not working: image.on(Events.AnimationEnd, details.states.switch("show"))
image.on Events.StateDidSwitch, -> if image.states.current == "show" then print "do stuff"
(disclaimer that's from memory so it might not be 100% correct)
Works great. Thanks! Do you know if all the Events are documented somewhere?