/Upload/20080604194252471.swf
Constructor
Public Function dot (X _: Number = 0, Y _: Number = 0, _ islisten: Boolean = false)
The first two parameters indicate the initial position of the dot, and the third parameter indicates whether the dot is a functional point.
If it is false, events will not be published when XY changes. If it is true, events will be published,
Bind binding Display object Method
Public Function BIND (_ DIS: displayobject, isintime: Boolean = false): void
When dot is bound to displayobject, the dot's XY attribute changes with _ dis.
The first parameter is the bound object, and the second parameter indicates whether to bind the object instantly.
If it is false, the dot's XY attribute will not change with the change of _ DIS, but when obtaining the dot's XY attribute or calling the dot method, changes immediately and uses the XY attribute of _ DIS as the benchmark.
If this parameter is set to true, the dot's XY attribute changes immediately as _ dis changes. If islisten is set to true, the XY change event is also released instantly, so it can listen on the XY attribute of the display object and make an immediate response after the change.
Updata refresh Method
Public Function updata (): void
Update the XY attribute of the display object and dot
From returns the distance between two points.
Public Function from (_ Dot: dot, isquadrant: Boolean = false): Number
The first parameter indicates the end point, and the second parameter indicates whether the distance is real.
If this parameter is set to false, the distance between two returned points is definitely a positive number, indicating the absolute distance between two points.
If it is true, the relative coordinates are returned, which may be negative!
Angle returns the angle between two points.
Public Function angle (_ Dot: dot, isradian: Boolean = false): Number
The first parameter indicates, the other vertex, and the second parameter indicates whether the parameter is a radian value.
The returned angle is the actual angle value relative to the time. The specific numerical changes can be seen from the preceding example.
Quadrant returns the quadrant of the relative vertex.
Public Function quadrant (_ Dot: dot, ismaster: Boolean = true): int
The first parameter indicates another vertex, and the second parameter indicates whether the vertex is used as the standard. For details, see the example.
Returns 0, indicating that two points are in the same horizontal or vertical line.
Returns 1 in the First quadrant, and 2 in the second quadrant ............ The highest is the fourth quadrant ..
I don't know what quadrant means. Please refer to the "quadrant" Baidu encyclopedia page.
Clear Method
Public Function clear (): void
Clear display object
Length attribute (read-only)
Public Function get length (): Number
Obtain the distance from this vertex.
X attributes
Public Function set X (Num: Number): void
Public Function get x (): Number
Set the X attribute. If islisten is true, the event changed by X will be published.
Y attributes
Public Function set Y (Num: Number): void
Public Function get y (): Number
Set the y attribute. If islisten is true, the event changed by Y is published.
Islistener attributes
Public var islisten: Boolean
Specifies whether to set the islisten value to listen to XY.