![MACROMEDIA FLASH 8-EXTENDING FLASH Manual Download Page 168](http://html1.mh-extra.com/html/macromedia/flash-8-extending-flash/flash-8-extending-flash_manual_3348049168.webp)
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.
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...