mc.label.text = mc.getDepth();
}
See also
getDepth (MovieClip.getDepth method)
(MovieClip.getInstanceAtDepth method)
,
method)
attachMovie (MovieClip.attachMovie method)
(MovieClip.duplicateMovieClip method)
(MovieClip.createEmptyMovieClip method)
getRect (MovieClip.getRect method)
public getRect(bounds:Object) : Object
Returns properties that are the minimum and maximum x and y coordinate values of the
movie clip, based on the
returns are the same or smaller than those returned by
getRect()
Use
MovieClip.localToGlobal()
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 Player 8
Parameters
- The target path of the timeline whose coordinate system you want to use as
bounds:Object
a reference point.
Returns
- An object with the properties
Object
868
ActionScript classes
,
parameter, excluding any strokes on shapes. The values that
bounds
and
MovieClip.globalToLocal()
,
xMin
getInstanceAtDepth
,
swapDepths (MovieClip.swapDepths
,
duplicateMovieClip
,
createEmptyMovieClip
MovieClip.getBounds()
,
, and
xMax
yMin
yMax.
methods to convert the
.
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?