MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 178

Extending flash
Table of Contents

Advertisement

drawingLayer.beginDraw()
Availability
Flash MX 2004.
Usage
drawingLayer.beginDraw([persistentDraw])
Parameters
A Boolean value (optional). If set to
, it indicates that the drawing in
persistentDraw
true
the last frame remains on the Stage until a new
or
call is made.
beginDraw()
beginFrame()
(In this context, frame refers to where you start and end drawing; it does not refer to timeline
frames.) For example, when users draw a rectangle, they can preview the outline of the shape
while dragging the mouse. If you want that preview shape to remain after the user releases the
mouse button, set
to
.
persistentDraw
true
Returns
Nothing.
Description
Method; puts Flash in drawing mode. Drawing mode is used for temporary drawing while the
mouse button is pressed. You typically use this method only when creating extensible tools.
Example
The following example puts Flash in drawing mode:
fl.drawingLayer.beginDraw();
drawingLayer.beginFrame()
Availability
Flash MX 2004.
Usage
drawingLayer.beginFrame()
Parameters
None.
Returns
Nothing.
178
Objects

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