Lineto (Movieclip.lineto Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

See also
beginFill (MovieClip.beginFill method)
(MovieClip.beginGradientFill method)
(MovieClip.curveTo method)
(MovieClip.moveTo method)

lineTo (MovieClip.lineTo method)

public lineTo(x:Number, y:Number) : Void
Draws a line using the current line style from the current drawing position to (x, y); the
current drawing position is then set to (x, y). If the movie clip that you are drawing in contains
content that was created with the Flash drawing tools, calls to
underneath the content. If you call
current drawing position defaults to (
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 Lite 2.0
Parameters
- An integer indicating the horizontal position relative to the registration point of
x:Number
the parent movie clip.
- An integer indicating the vertical position relative to the registration point of the
y:Number
parent movie clip.
Example
The following example draws a triangle with a 5-pixel, solid magenta line and a p artially
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();
,
beginGradientFill
,
clear (MovieClip.clear method)
,
lineTo (MovieClip.lineTo method)
before any calls to the
lineTo()
,
). If any of the parameters are missing, this method
0
0
,
,
moveTo
are drawn
lineTo()
method, the
moveTo()
MovieClip
curveTo
483

Advertisement

Table of Contents
loading

Table of Contents