Getbounds (Movieclip.getbounds Method) - 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

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
MovieClipLoader

getBounds (MovieClip.getBounds method)

public getBounds(bounds:Object) : Object
Returns properties that are the minimum and maximum x and y coordinate values of the
movie clip, based on the
Note: Use
MovieClip.lcalToGlobal()
movie clip's local coordinates to Stage coordinates, or Stage coordinates to local coordinates,
respectively.
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 target path of the Timeline whose coordinate system you want to use
bounds:Object
as a reference point.
Returns
- An object with the properties
Object
466
ActionScript classes
_framesloaded
parameter.
bounds
and
,
xMin
property to start a SWF file when all the
property of the
_xscale
MovieClip.globalToLocal()
,
, and
xMax
yMin
yMax.
movie
bar_mc
to convert the

Advertisement

Table of Contents
loading

Table of Contents