createjs.MovieClip Class

Mixins for the CreateJS MovieClip class

gotoAndCacheByBounds

(
  • [frame=0]
  • [buffer=0]
  • [scale=1]
)

Combines gotoAndStop and cache in createjs to cache right away. This caches by the bounds exported from Flash, preferring frameBounds and falling back to nominalBounds.

Parameters:

  • [frame=0] String | Int optional

    The 0-index frame number or frame label

  • [buffer=0] Int optional

    The space around the bounds to include in cache image

  • [scale=1] Number optional

    The scale to cache the container by.