Is there a way to query the ticker for the priority (.pr) of the last dispatched event?
This would be real helpful at times.. especially when dispatching custom events before and after tweens and wanting to know where we are in the series of events.
For example, would want to be able to query TweenMax.ticker if I am at priority -100 or 100 from when these are fired:
TweenMax.ticker.addEventListener('tick', preComponentPaintCb, this, false, -100 );
TweenMax.ticker.addEventListener( 'tick', postComponentPaintCb, this, false, 100 );
My research suggests this information is not available... and if I wanted to add it, I would so hereabouts:
https://github.com/greensock/GreenSock-JS/blob/master/src/uncompressed/TweenMax.js#L6320
by adding something like
this.lastPr = listener.pr;
Help and suggestions appreciated. I've a related question but will hold on until I get some feedback on this one Thanks!