Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1008 Bytes

File metadata and controls

24 lines (16 loc) · 1008 Bytes

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 element.left is relative to the upper left of the Stage for elements that are in a scene and is relative to the symbol’s registration point (also origin point or zero point) if the element is stored within a symbol. Use document.setSelectionBounds() or document.moveSelectionBy() to set this property.

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 element.elementType example.