MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 520

Extending flash
Table of Contents

Advertisement

vertex.x
Availability
Flash MX 2004.
Usage
vertex.x
Description
Read-only property; the x location of the vertex in pixels.
Example
The following example displays the location of the
and
values of the vertex in the
x
y
Output panel.
var shape = fl.getDocumentDOM().selection[0];
var hEdge = shape.edges[0].getHalfEdge(0);
var vertex = hEdge.getVertex();
fl.trace('x location of vertex is: ' +
vertex.x);
fl.trace('y location of vertex is: ' + vertex.y);
vertex.y
Availability
Flash MX 2004.
Usage
vertex.y
Description
Read-only property; the y location of the vertex, in pixels.
Example
See
.
vertex.x
520
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents