
Number() Global Function
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
713
nextScene() Global Function
advance a movie’s playhead to frame 1 of the next scene
Flash 2
nextScene()
Description
The nextScene() function moves the main playhead of a movie to frame 1 of the scene
following the current scene and stops the main movie timeline. The current scene is the
scene from which the nextScene() function is invoked. It must be invoked on a scene’s main
timeline in order to have an effect; that is, nextScene() does not work inside a movie clip
instance. If it is invoked from the last scene in a movie, nextScene() sends the playhead to
frame 1 of that scene and halts movie playback.
I recommend against using scenes when working with ActionScript-
intensive movies. Unlike movie clips, scenes are not represented by
objects and cannot be manipulated directly by most built-in func-
tions. Normally it’s better to use labels and movie clips as pseudo-
scenes in your timeline instead of using Flash’s scene feature.
See Also
nextFrame(), prevScene()
Number() Global Function
convert a value to the Number datatype
Flash 5
Number(value)
Arguments
value An expression containing the value to be converted to a number.
Returns
The result of converting value to a primitive number.
Description
The Number() function converts its value ...