Vertex.x - 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

Usage
vertex.setLocation( x, y )
Parameters
A floating point value that specifies the x coordinate of where the vertex should be positioned,
x
in pixels.
A floating point value that specifies the y coordinate of where the vertex should be positioned,
y
in pixels.
Returns
Nothing.
Description
Method; sets the location of the vertex. You must call
method.
Example
The following example sets the vertex to the origin point.
var shape = fl.getDocumentDOM().selection[0];
var hEdge = shape.edges[0].getHalfEdge(0);
var vertex = hEdge.getVertex();
// move the vertex to the origin
vertex.setLocation(0.0, 0.0);

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
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: ' +
fl.trace('y location of vertex is: ' + vertex.y);
362
Chapter 3: Objects
shape.beginEdit()
and
values of the vertex in the Output
x
y
vertex.x);
before using this

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents