CS3 JS: Point

CS3 ScriptUI

Point

 

Defines the location of a window or UI element. Contains a 2-element array.

Specifies the origin point of an element as horizontal and vertical pixel offsets from the origin of the element's coordinate space. A Point object is created when you set an element’s location property. You can set the property using a JavaScript object with properties named x and y, or an array with 2 values in the order [x, y].

Properties

PropertyTypeAccessDescription
leftNumberr/wThe left coordinate.
lengthNumberreadonlyThe array length. (value: 2)
topNumberr/wThe top coordinate.
xNumberr/wThe horizontal coordinate, a pixel offset from the origin of the element's coordinate space.
yNumberr/wThe vertical coordinate, a pixel offset from the origin of the element's coordinate space.

Element of

Button.location

Checkbox.location

DropDownList.location

EditText.location

FlashPlayer.location

Group.location

IconButton.location

Image.location

ListBox.location

Panel.location

Progressbar.location

RadioButton.location

ScriptUIGraphics.currentPoint

Scrollbar.location

Slider.location

StaticText.location

TreeView.location

Window.frameLocation

Window.location

Return

Point ScriptUIGraphics.ellipsePath (left:Number, top:Number, width:Number, height:Number)

Point ScriptUIGraphics.lineTo (x:Number, y:Number)

Point ScriptUIGraphics.moveTo (x:Number, y:Number)

Point ScriptUIGraphics.rectPath (left:Number, top:Number, width:Number, height:Number)

Contents :: Index