Displaying Frame Numbers

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Flash Tutorial - Displaying Frame Numbers

 

Free Flash Tutorial


Page 3     <<   Previous    1   2   3   >>       >>   Webwasp Mates

 

Step Three: ActionScript

  1. Right click on frame one and select: Actions

  2. The Actions panel go to the View Options button and select: Expert Mode

  3. Type the following code:

    onEnterFrame=function(){
        _root.displayNumber=_root._currentframe;
    }


  4. Test your movie. To do this go to: Control > Test Movie

    Your movie should display the current frame number.

Note: If you do not want to display the frame number of the main time line but the frame number of a movie clip, give the movie clip an instance name and change the second line of script to:

_root.displayNumber=_root.myInstanceName._currentframe;

Example: Download the Flash file  Beg 017b

 

Example of frame number being taken from the Timeline inside a Movie Clip.

 

Please indicate what you thought of this tutorial 
10 is the best: 
10 9 8 7 6 5 4 3 2 1

         

Page 3     <<   Previous    1   2   3   >>       >>   Webwasp Mates


Webwasp Community: Webwasp Mates & Dates

Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates

32410 visitors to this page since Jan 04

 Top of Page Home Food Mates Members Tutorials Forum Buy Templates Contact Us 
 All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.