Flash AS3 Tutorials Center | Interesting Flash Animation Tutorials | Valuing Flash Animation Tutorials | Flash ActionScript and Animation Home

AS3 Beginner Tutorials | AS3 Basic Lessons | AS3 Valuing Courses | AS3 Components Tutorials | AS3 and PHP Interaction Tutorials
AS3 Practical Tutorials | AS3 Animation Techniques | AS3 Transition Effects Tutorials | AS3 Download Upload Files | AS3 Particle Systems
Communication Between Flash Movies with AS3 | AS3 and JavaScript interaction | AS3 Matrix Transformation | AS3 Physics Simulation Tutorials

Get Flash Movie Current Frame Number with ActionScript 3 Tutorial

Sometimes we need to get the current frame number of Flash Movies. This allow us to control the Flash animation much easier.

Please update flash player to view this Flash ActionScript tutorial!

Flash Tutorial Content:

For some Flash Movies, it may need to know the current frame number of Flash Movie. This allow us to control the Flash animation in a better and much easier way. In this Flash ActionScript tutorial, we write a very simple function so that the current frame of Flash Movie can be tracked easily.

The complete Flash Movie is shown as above, you may try how it works before you start this Flash ActionScript tutorial.

Flash ActionScript Codes:

// Add Event Listener to stage
addEventListener(Event.ENTER_FRAME, countFrame);

function countFrame(evt:Event) {

// Display the current frame number
output_txt.text = ("The Current Frame Number is now: " + this.currentFrame);


Download Flash Source File:

Flash Source File current-frame-number.fla


This Flash ActionScript tutorial shows how to obtain or get the current frame number of Flash Movie.