How can I continuously track the position of an animated layer?I can get the X Position as a variable when I have an event like DragMove, but once I release I no longer get it.
Would I have to do something like setInterval to poll the position every few milliseconds?
A neat trick i found on this page is you can listen to "change:x" events on a layer. Then you can have just one listener, instead of one for drag events and one for animation events.
I've often wanted an Events.AnimationUpdate event, but it's not there yet.
oh thank you! Would you mind explaining how to set up a listener? I haven't figured out how to do it in CS.
Try this: https://gist.github.com/msfeldstein/fcae554c71d91f7f7799