Specifications

Moves the rectangle so that its left property is equal to
pos.
moveLeft( pos : Number )
Moves the rectangle so that its right property is equal to
pos.
moveRight( pos : Number )
Moves the rectangle so that its top property is equal to
pos.
moveTop( pos : Number )
Moves the rectangle so that its bottom property is equal
to pos.
moveBottom( pos : Number )
Translates the rectangle by dx and dy. dx and dy will be
added to x and y. Width and height will be left
unchanged.
moveBy( dx : Number, dy : Number
)
RegExp
A RegExp is a regular expression matcher for strings.
Regular expressions can be created either by using the /expression/ syntax or by using the RegExp
constructor as shown below. Note that when using the RegExp constructor, a string is passed,
and all backslashes must be escaped using an extra backslash, that is, \\d. Below are two ways
to create regular expressions that matches the pattern "QUANTITY=471 # Order quantity" and gets
the number 471.
var directRegex = /([A-Z]+)=(\d+)/;
var str = "QUANTITY=471 # Order quantity";
str.match(directRegex);
directRegex.capturedTexts[2]; // "471";
var indirectRegex = new RegExp( "([A-Z]+)=(\\d+)" );
RegExp Properties
True if the regular expression is syntactically valid; otherwise returns
false.
valid : Boolean
True if the pattern is empty; otherwise returns false.
empty : Boolean
The length of the last matched string or -1 if there was no match.
matchedLength :
Number
An array of all the captured texts from the previous match. This can
be empty.
capturedTexts : String[
]
Specifies that the regexp should be matched globally. A global regexp
will match every occurrence (that is, as many times as possible),
global : Boolean
whereas a non-global regexp will match at most once (at the first
match it encounters). This is particularly relevant for replace where
every occurance of a pattern will be replaced when global is true.
381
Enfocus Switch 10