Changed code to be time based.

Code is based on the PixiAnimator code and is untested as of yet.
Fixed sound code. Cleaned up pause properties on timelines.