Actionscript TransitionManager Class

Actionscript 3 has a rather useful TransitionManager class to provide transition effects to movie clips. It provides a convenient function static TransitionManager.start() that we can use for adding effects (e.g. blinds, fly, zoom, etc). Whats missing from the documentation though is that the class that the effect is being applied on must be declared a dynamic class. This is something to note if you’re using it on a custom MovieClip sub-class. The MovieClip class itself is dynamic, so its not a problem. Doesn’t apply as well if you are using the instanced method startTransition(. . .).

Another useful thing to note is that the Transition class provides events for when the transition is completed, those being “transitionInDone” and “transitionOutDone”, depending on the transition direction. This is shown in the documentation example. It is unusual though that, unlike other events, they do not provide a static constant for these events, and we have to quote them as literal strings.

No Comments.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">