MovieClipHistory Class

game

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

attachMovie
duplicateMovieClip
createEmptyMovieClip
loadMovie
swapDepths
removeMovieClip
lineStyle
beginFill
beginGradientFill
endFill
moveTo
lineTo
curveTo
clear
These methods are overridden for the movie clip so that new, history recording methods can be used in their place. The new methods record the method call and call for the movie clip 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 movie clip may be set up to record history for itself. An instance of MovieClipHistory is then automatically assigned to that movie clip as the property history.

Developer: Trevor McCauley
Language: en