MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 198

Extending flash
Table of Contents

Advertisement

element.left
Availability
Flash MX 2004.
Usage
element.left
Description
Read-only property; a float value that represents the left side of the element. The value of
is relative to the upper left of the Stage for elements that are in a scene, and is
element.left
relative to the symbol's registration point if the element is stored within a symbol.Use
or
to set this property.
document.setSelectionBounds()
document.moveSelectionBy()
Example
The following example illustrates how the value of this property changes when an element
is moved:
// Select an element on the Stage and then run this script.
var sel = fl.getDocumentDOM().selection[0];
fl.trace("Left (before) = " + sel.left);
fl.getDocumentDOM().moveSelectionBy({x:100, y:0});
fl.trace("Left (after) = " + sel.left);
See the
example.
element.elementType
element.locked
Availability
Flash MX 2004.
Usage
element.locked
Description
Property; a Boolean value:
if the element is locked;
otherwise. If the value of
true
false
is
, this property is ignored.
element.elementType
"shape"
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;
198
Objects

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents