EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE - Prevframe()

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE
162 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
prevFrame() 35
Example
The following example uses an if statement to check the value of a name that the user enters.
If the user enters
Steve, the play() function is called, and the playhead moves forward in the
timeline. If the user enters anything other than
Steve, the SWF file does not play, and a text
field with the variable name
alert appears.
stop();
if (name == "Steve") {
play();
} else {
alert="You are not Steve!";
}
prevFrame()
Availability
Flash Lite 1.0.
Usage
prevFrame()
Operands
None.
Description
Function; sends the playhead to the previous frame and stops it. If the current frame is Frame
1, the playhead does not move.
Example
When the user clicks a button that has the following handler attached to it, the playhead is
sent to the previous frame:
on(release) {
prevFrame();
}
See also
nextFrame()

Table of Contents

Related product manuals