MovieClipHistory Documentation

Example:
Download .zip (class and example)
Download .as (class only)

Author: senocular
Last Modified: 01/28/05 18:57:23


Summary

MovieClipHistory class:

- description

MovieClipHistory Properties:

- enabled
- _parent
- epoch
- target

MovieClipHistory Methods:

- MovieClipHistory.initialize
- recall


MovieClipHistory class

version: 1.1

description:

Provides a way to record and replay many methods used in dynamically defining a MovieClip's visual appearance. Methods recorded can be replayed on the original MovieClip or another MovieClip which is to "inherit" the original MovieClip's dynamic appearance. Supported methods include:

These methods are overridden for the MovieClip so that new, history recording methods can be used in their place. The new methods record the method call and call for the MovieClip the original method.

When using MovieClipHistory, you don't don't create instances of the class but, rather, use the class to initialize a pre-existing MovieClip instance so that that MovieClip may be set up to record history for itself. An instance of MovieClipHistory is then automatically assigned to that MovieClip as the property history. This history is an array of generic history objects that contain the properties:

usage:

MovieClipHistory.initialize(movieClipToReceiveHistory [, epoch]);

MovieClipHistory Properties:

enabled

if true history is recorded as normal. When set to false historic methods are not recorded in history. Default: true.

_parent

The MovieClip owning the MovieClipHistory instance.

epoch

The epoch MovieClip if _parent is not recording it's own history.

target

A string path to _parent from the epoch.


MovieClipHistory Methods:

MovieClipHistory.initialize

description: (Static) Initializes a MovieClip in order for it's methods to be recorded. When initialized, MovieClips recieve an instance of MovieClipHistory as a history property. Set epoch to true if you want child clips to store history in the MovieClip being initialized

usage:

MovieClipHistory.initialize(movieClipToReceiveHistory [, epoch]);

parameters:

returns: Void.

recall

description: Recalls one, a range of, or all historic events calling them on the passed epoch.

usage:

initializedMovieClip.history.recall(anyMovieClip [, start [,end]]);

parameters:

returns: Void.




generated with AS2docGenerator beta 0.5.3