Moscrif API Docs for: 2012q3
Show:

AnimatorChain Class

include "lib://core/animation/animatorChain.ms";
Library: core

Chains several Animator objects together

Item Index

Properties

Methods

this

(
  • animators
  • [options]
)

Construction od Animator Chain instance

Parameters:

  • animators Array

    An array of Animators to be chained.

  • [options] Object optional

    {Object} An object of default options.

advance

()

Play the next animator

listenTo

(
  • animator
)

Internal: install an event listener on an animator's onComplete option to trigger the next animator

Parameters:

play

()

Play each animator in turn

reverse

()

Play all animators backwards

seekTo

(
  • target
)

This function is provided for drop-in compatibility with Animator objects, but only accepts 0 and 1 as target values

Parameters:

setOptions

(
  • options
)

Apply defaults

Parameters:

  • options Options

    An options object.

stop

()

Stops and disposes all objects

toggle

()

If we have just play()'d, then call reverse(), and vice versa

Properties

resetOnPlay

Unknown

By default, each call to AnimatorChain.play() calls jumpTo(0) of each animator before playing, which can cause flickering if you have multiple animators all targeting the same element. Set this to false to avoid this.