Example
The following example uses the
are loaded. If all the frames aren't loaded, the
is increased proportionally to create a progress bar.
if (_framesloaded >= _totalframes) {
gotoAndPlay ("Scene 1", "start");
} else {
_root.loader._xscale = (_framesloaded/_totalframes)*100;
}
See also
MovieClipLoader class
MovieClip.getBounds()
Availability
Flash Player 5.
Usage
my_mc.getBounds(targetCoordinateSpace)
Parameters
targetCoordinateSpace
to use as a reference point.
Returns
An object with the properties
Description
Method; returns properties that are the minimum and maximum x and y coordinate values of the
instance specified by
Note: Use
MovieClip.localToGlobal()
local coordinates to Stage coordinates, or Stage coordinates to local coordinates, respectively.
Example
In the following example, the object that
. You can then access the values of each property and use them in a script. In this
clipBounds
script, another movie clip instance,
clipBounds = clip.getBounds(_root);
clip2._x = clipBounds.xMax;
See also
MovieClip.globalToLocal()
_framesloaded
The target path of the Timeline whose coordinate system you want
,
,
xMin
xMax
yMin
for the
my_mc
targetCoordinateSpace
and
MovieClip.globalToLocal()
getBounds()
, is placed alongside
clip2
,
MovieClip.localToGlobal()
property to start a SWF file when all the frames
property of the movie clip instance
_xscale
, and
yMax.
parameter.
returns is assigned to the identifier
clip
to convert the movie clip's
.
MovieClip.getBounds()
loader
501
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers