this is portable

AS3 - calling a custom event from the timeline

January 22nd, 2008

flash

This is kind of a follow up to my last post on writing a custom event in AS3. The sample files show how to call a custom class from the timeline . (The same code would apply to calling a built-in event from the timeline as well.) When would this come up? Most likely when you have some kind of animation build up that has to play out before buttons or other objects can become active.

The sample file features a movie clip that animates (via a timeline tween) across the stage and then dispatches an event when it finishes it’s tween.

Calling event from the timeline sample files

Leave a Comment

your name and email are required to post a comment. however, your email will NOT be published.