168
Objects
document.swapElement()
Availability
Flash MX 2004.
Usage
document.swapElement(
name
)
Parameters
name
A string that specifies the name of the library item to use.
Returns
Nothing.
Description
Method; swaps the current selection with the specified one. The selection must contain a
graphic, button, movie clip, video, or bitmap. This method displays an error message if no
object is selected or the given object could not be found.
Example
The following example swaps the current selection with
Symbol 1
from the library:
fl.getDocumentDOM().swapElement('Symbol 1');
document.swapStrokeAndFill()
Availability
Flash 8.
Usage
document.swapStrokeAndFill();
Parameters
None.
Returns
Nothing.
Description
Method; swaps the Stroke and Fill colors.
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...