Place your content on or after Frame 3. Then add the following code on 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
Use
MovieClip.localToGlobal()
movie clip's local 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 5
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
Example
The following example creates a movie clip called
that movie clip and uses
instance in the Output panel.
this.createEmptyMovieClip("square_mc", 1);
square_mc._x = 10;
square_mc._y = 10;
square_mc.beginFill(0xFF0000);
square_mc.moveTo(0, 0);
square_mc.lineTo(100, 0);
square_mc.lineTo(100, 100);
square_mc.lineTo(0, 100);
square_mc.lineTo(0, 0);
square_mc.endFill();
862
ActionScript classes
parameter.
bounds
and
MovieClip.globalToLocal()
,
xMin
MovieClip.getBounds()
,
, and
xMax
yMin
yMax.
. The code draws a square for
square_mc
to display the coordinate values of the
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?