Drawinglayer.endframe(); Drawinglayer.lineto() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Example
The following example exits drawing mode:
fl.drawingLayer.endDraw();

drawingLayer.endFrame()

Availability
Flash MX 2004.
Usage
drawingLayer.endFrame()
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
The next call to
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);
drawingLayer.beginFrame()
drawingLayer.beginFrame()
and
drawingLayer.endFrame()
will erase whatever was drawn in this group of
drawingLayer object
139
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents