Recipe 1.6 Performing an Action Once per Frame Update

1.6.1 Problem

You want to perform an action or actions at the frame rate of the movie.

1.6.2 Solution

Use an onEnterFrame( ) handler.

1.6.3 Discussion

The onEnterFrame( ) event handler method for movie clips is the appropriate choice when you want to perform actions continuously at the same speed as the frame rate of the movie. See Recipe 1.1 and Recipe 7.8.



ActionScript Cookbook
ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers
ISBN: 0596526954
EAN: 2147483647
Year: 2005
Pages: 425

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net