fl.trace("Left (before) = " + sel.left);
fl.getDocumentDOM().moveSelectionBy({x:100, y:0});
fl.trace("Left (after) = " + sel.left);
See the
element.elementType
element.locked
Availability
Flash MX 2004.
Usage
element.locked
Description
Property; a Boolean value:
element.elementType
Example
The following example locks the first element in the first frame, top layer:
// similar to Modify > Arrange > Lock:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].locked =
true;
element.matrix
Availability
Flash MX 2004.
Usage
element.matrix
Description
Property; a
Matrix
properties are floating point values; the
Example
The following example moves the specified element by 10 pixels in x and 20 pixels in y:
var mat =
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].matrix;
mat.tx += 10;
mat.ty += 20;
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].matrix =
mat;
example.
if the element is locked;
true
is
, this property is ignored.
"shape"
object. A matrix has properties
tx
otherwise. If the value of
false
,
,
,
,
, and
a
b
c
d
tx
and
properties are coordinates.
ty
. The
,
,
, and
ty
a
b
c
d
Element object
153
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?