
192
EXTENDING FLASH PROFESSIONAL
Element object
Last updated 5/2/2011
Parameters
name A string that specifies the name of the data to remove.
Returns
Nothing.
Description
Method; removes any persistent data with the specified name that has been attached to the object. Only symbols and
bitmaps support persistent data.
Example
See element.getPersistentData().
element.rotation
Availability
Flash CS3 Professional.
Usage
element.rotation
Description
Property; an integer or float value between -180 and 180 that specifies the object’s clockwise rotation, in degrees.
Example
The following example sets the currently selected element’s rotation to 45 degrees:
var element = fl.getDocumentDOM().selection[0];
fl.trace("Element rotation = " + element.rotation);
element.rotation = 45;
fl.trace("After setting rotation to 45: rotation = " + element.rotation);
element.scaleX
Availability
Flash CS3 Professional.
Usage
element.scaleX
Description
Property; a float value that specifies the x scale value of symbols, drawing objects, and primitive rectangles and ovals.
A value of 1 indicates 100 percent scale.
Commenti su questo manuale