I'm using a timeline currently like a queue system. Based on events from a server, I'm displaying animations, by just adding them to the timeline.
I'd like to add a function to the timeline which control what animations it does next (If it should fade out some image, or tween out some other images). I can't do this outside of the timeline, because variables could be changed, (For instance, if I queue up some open/close animations in between.)
I looked to add things to the front of a timeline, but it doesn't affect the other items in the timeline, and can cause some things to overlap. Returning a tween/timeline from a function() also does nothing, and I'm a bit stumped on how to proceed.
Any ideas?