
#include Directive
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
545
gotoAndStop("introSequence", 20);
// Go to frame "hello" of the introSequence scene, and stop there
gotoAndStop("introSequence", "hello")
// Caution! This goes to the frame labeled "introSequence" in the current scene
gotoAndStop("introSequence")
// This goes to frame 1 of the introSequence scene
gotoAndStop("introSequence", 1)
Reader Exercise: Write a custom function, gotoDeltaAndStop( ), that allows the caller to
specify a relative frame number, including a negative one. For example, gotoDeltaAndStop(–5)
would jump backward by 5 frames. (Hint: You’ll need the
MovieClip._currentframe property.)
Remember to add any special code to handle the end conditions (i.e., when a relative frame
number would cause it to jump beyond the beginning or end of the current timeline).
See Also
gotoAndPlay( ), MovieClip.gotoAndStop( ), play( ), stop( )
_highquality Global Property
the rendering quality of the Player
Flash 4; deprecated in Flash 5 in favor of _quality
read/write
_highquality
Description
The _highquality global property stores an integer between 0 and 2 that dictates the
rendering quality of the Flash Player as follows:
0 Low quality. Neither bitmaps nor vectors are antialiased (smoothed).
1 High quality. Vectors are antialiased. Bitmaps are