EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Getrect (Movieclip.getrect Method)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
868 ActionScript classes
mc.label.text = mc.getDepth();
}
See also
getDepth (MovieClip.getDepth method), getInstanceAtDepth
(MovieClip.getInstanceAtDepth method)
, swapDepths (MovieClip.swapDepths
method)
, attachMovie (MovieClip.attachMovie method), duplicateMovieClip
(MovieClip.duplicateMovieClip method)
, createEmptyMovieClip
(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
bounds parameter, excluding any strokes on shapes. The values that
getRect() returns are the same or smaller than those returned by MovieClip.getBounds().
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Player 8
Parameters
bounds:Object - The target path of the timeline whose coordinate system you want to use as
a reference point.
Returns
Object - An object with the properties xMin, xMax, yMin, and yMax.
NOTE
Use MovieClip.localToGlobal() and MovieClip.globalToLocal() methods to convert the
movie clip’s local coordinates to Stage coordinates, or Stage coordinates to local
coordinates, respectively.

Table of Contents

Related product manuals