ENTER_FRAME Event Listener


The ENTER_FRAME Event Listener is used to repeatedly call a function as long as the movie is running. It's as if you put the same statement (such as ball1.y+=1;) on every frame in the timeline. The statements simply run over and over again at the frame rate. If the frame rate is 24fps, the function will run twenty-four times per second.

What We Did

  1. Created a file called ball_move
  2. Added an eventListnener statement that called the moveBall function on ENTER_FRAME
  3. Created the moveBall function

Important ActionScript

function moveBall(event:Event){

Self-Check for Understanding

What do you think the following statement would do:

Find an answere here