Handling the enterFrame event


show more Handling the enterFrame event provides you with in-depth training on Web. Taught by David Gassner as part of the Flash Professional CS5: Code Snippets and Templates in Depth show less
please wait ...

Handling the enterFrame event

In Flash Professional, there were a couple of different ways to create animation. When you first learn how to use Flash, you typically use Timeline-based animation, including motion and shape tweens where you define a beginning state and an ending state and let the Flash authoring environment fill in the differences. And then there is the more time- intensive frame-by-frame animation where you create individual images in each frame of a Timeline and then as the Flash Player plays through the Timeline, the animation takes place. You can also create animation though in pure code using ActionScript 3.

You define the animation using ActionScript code depending on an event named ENTER_FRAME. To understand code-based animation, you need to know that the ENTER_FRAME event is dispatched by all movie clip objects, including the main document itself. You listen for the event which happens a certain number of times per second depending on the frame rate of the document. This is set by default to 24...

Handling the enterFrame event
Video duration: 8m 5s 3h 39m Intermediate

Viewers:

Handling the enterFrame event provides you with in-depth training on Web. Taught by David Gassner as part of the Flash Professional CS5: Code Snippets and Templates in Depth

Subject:
Web
Software:
ActionScript Flash Professional
Author:
please wait ...