596
Chapter 7: ActionScript for Flash
MovieClip.moveTo()
Availability
Flash Player 6.
Usage
my_mc
.moveTo(
x:Number
,
y:Number
)
: Void
Parameters
x
An integer indicating the horizontal position relative to the registration point of the parent
movie clip.
y
An integer indicating the vertical position relative to the registration point of the parent
movie clip.
Returns
Nothing.
Description
Method; 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.
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
MovieClip.createEmptyMovieClip()
,
MovieClip.lineStyle()
,
MovieClip.lineTo()
MovieClip._name
Availability
Flash Player 4.
Usage
my_mc
.
_name
:String
Description
Property; the instance name of the movie clip specified by
my_mc
.
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...