|
||||||
|
||||||
Flash Tutorial - Displaying Frame Numbers

Free
Flash Tutorial
The aim of the tutorial is to learn how to use actionscript to display the Frame number from the Timeline.
Example: Download the
Flash file Beg 017a
| |
Step One: Document Setup
The number of frames per second is controlled by the default setup. You cannot have one part of a movie playing at 12 frames pre second and another playing at 8 frames per second. To change the default setup:

Step Two: Display Text Box
You need a text box on stage so that the number can be displayed.
Step Three: ActionScript
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.
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
•
32937 visitors to this page since Jan 04 |
|
|
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.
|