Gotoandstop (Movieclip.gotoandstop Method); Height (Movieclip._Height Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

gotoAndStop (MovieClip.gotoAndStop method)

public gotoAndStop(frame:Object) : Void
Brings the playhead to the specified frame of the movie clip and stops it there. To specify a
scene in addition to a frame, use
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- The frame number to which the playhead is sent.
frame:Object
Example
The following example uses the
frames are loaded. If all the frames aren't loaded, the
clip instance is increased proportionally to create a progress bar.
Enter the following ActionScript in Frame 1 of the Timeline:
var pctLoaded:Number = Math.round(this.getBytesLoaded()/
this.getBytesTotal()*100);
bar_mc._xscale = pctLoaded;
Add the following code to Frame 2:
if (this._framesloaded<this._totalframes) {
this.gotoAndPlay(1);
} else {
this.gotoAndStop(3);
}
Place your content on or after Frame 3. Then add the following code to Frame 3:
stop();
See also
gotoAndStop function

_height (MovieClip._height property)

public _height :
The height of the movie clip, in pixels.
Availability: ActionScript 1.0; Flash Lite 2.0
478
ActionScript classes
gotoAndStop()
_framesloaded
,
stop function
Number
.
property to start a SWF file when all the
property of the
_xscale
movie
loader

Advertisement

Table of Contents
loading

Table of Contents