Moveto (Movieclip.moveto Method); Name (Movieclip._Name Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

moveTo (MovieClip.moveTo method)

public moveTo(x:Number, y:Number) : Void
Moves the current drawing position to (x, y). If any of the parameters are missing, this
method fails and the current drawing position is not changed.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Player 6
Parameters
- An integer that indicates the horizontal position relative to the registration point
x:Number
of the parent movie clip.
- An integer that indicates the vertical position relative to the registration point of
y:Number
the parent movie clip.
Example
The following example draws a triangle with a 5-pixel, solid magenta line and a partially
transparent blue fill:
this.createEmptyMovieClip("triangle_mc", 1);
triangle_mc.beginFill(0x0000FF, 30);
triangle_mc.lineStyle(5, 0xFF00FF, 100);
triangle_mc.moveTo(200, 200);
triangle_mc.lineTo(300, 300);
triangle_mc.lineTo(100, 300);
triangle_mc.lineTo(200, 200);
triangle_mc.endFill();
See also
createEmptyMovieClip (MovieClip.createEmptyMovieClip method)
(MovieClip.lineStyle method)

_name (MovieClip._name property)

public _name : String
The instance name of the movie clip.
Availability: ActionScript 1.0; Flash Player 4
,
lineTo (MovieClip.lineTo method)
,
lineStyle
MovieClip
899

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents