Extending Flash |
|
|
|
| Objects > Document object > document.setElementProperty() | |||
Flash MX 2004.
document.setElementProperty(property,value)
property A string that specifies the name of the Element property to set. For a complete list of properties and values, see Property summary for the Element object.
|
NOTE |
You can't use this method to set values for read-only properties, such as |
value An integer that specifies the value to set in the specified Element property.
Nothing.
Method; sets the specified Element property on selected object(s) in the document. This method does nothing if there is no selection.
The following example sets the width of all selected objects to 100 and the height to 50:
fl.getDocumentDOM().setElementProperty("width", 100);
fl.getDocumentDOM().setElementProperty("height", 50);
|
|
|
|