I am attempting to make a mini animation engine using a texture atlas exported from Animate, then using GSAP to perform the animations in my game. However, I find the frame by frame JSON that is exported from Animate to be too large and unwieldy. Since GSAP uses a lot of the same ease interpolations as Animate, I was hoping to be able to read these eases from the frame data. I have yet to figure out a way to do this.
It is easy to set the ease of a tween using something like:
an.getDocumentDOM().getTimeline().setFrameProperty("easeType", 5, 4, 0);
In order to read an ease ,I've, attempted to use:
var easeType = an.getDocumentDOM().getTimeline().getFrameProperty("easeType", 0, 9);
fl.trace(easeType);
Where 0
and 9
are the first and last frame of my tween. This only returns a very unhelpful string of "easeType"
. Using frame.getCustomEase()
also doesn't appear to be what I need.
Is there some way of accessing this information?