Shape.edges; Shape.endedit() - 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

Description
Method; deletes the specified edge. You must call
Example
The following example takes the currently selected shape and removes the first edge in the edge
array:
var shape = fl.getDocumentDOM().selection[0];
shape.beginEdit();
shape.deleteEdge(0);

shape.endEdit();

shape.edges

Availability
Flash MX 2004.
Usage
shape.edges
Description
Read-only property; an array of Edge objects (see
shape.endEdit()
Availability
Flash MX 2004.
Usage
shape.endEdit()
Parameters
None.
Returns
Nothing.
Description
Method; defines the end of an edit session for the shape. All changes made to the Shape object or
any of its subordinate parts will be applied to the shape. You must use this method after issuing
any commands that change the Shape object or any of its subordinate parts.
Example
The following example takes the currently selected shape and removes the first edge in the edge
array from it:
var shape = fl.getDocumentDOM().selection[0];
shape.beginEdit();
shape.deleteEdge(0);
shape.endEdit();
268
Chapter 3: Objects
shape.beginEdit()
Edge
object).
before using this method.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents