Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 793 Bytes

File metadata and controls

31 lines (17 loc) · 793 Bytes

symbolItem.exportSWC()

Availability

Flash MX 2004.

Usage

symbolItem.exportSWC(outputURI)

Parameters

outputURI A string, expressed as a file:/// URI, that specifies the SWC file to which the method will export the symbol. The outputURI must reference a local file. Flash does not create a folder if outputURI does not exist.

Returns

Nothing.

Description

Method; exports the symbol item to a SWC file.

Example

The following example exports an item in the library to the SWC file named mySymbol.swc in the tests folder:

fl.getDocumentDOM.library.selectItem("mySymbol");
var currentSelection = fl.getDocumentDOM().library.getSelectedItems(); currentSelection[0].exportSWC("file:///Macintosh HD/SWCDirectory/mySymbol.swc");