MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 182

Extending flash
Table of Contents

Advertisement

Parameters
None.
Returns
Nothing.
Description
Method; signals the end of a group of drawing commands. A group of drawing commands
refers to everything drawn between
drawingLayer.endFrame()
whatever was drawn in this group of drawing commands. You typically use this method only
when creating extensible tools.
drawingLayer.lineTo()
Availability
Flash MX 2004.
Usage
drawingLayer.lineTo(x, y)
Parameters
A floating-point value that is the x coordinate of the end point of the line to draw.
x
A floating-point value that is the y coordinate of the end point of the line to draw.
y
Returns
Nothing.
Description
Method; draws a line from the current drawing position to the point (x,y). You typically use
this method only when creating extensible tools.
Example
The following example draws a line from the current drawing position to the point (20,30):
fl.drawingLayer.lineTo(20, 30);
182
Objects
drawingLayer.beginFrame()
. The next call to
drawingLayer.beginFrame()
and
will erase

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents