beautypg.com

Symbolitem.exportswc(), Symbolitem.exportswf() – Adobe Extending Flash Professional CS5 User Manual

Page 452

background image

430

EXTENDING FLASH PROFESSIONAL

SymbolItem object

Last updated 5/2/2011

Returns
Nothing.

Description
Method; converts a symbol item in the library to a compiled movie clip.

Example
The following example converts an item in the library to a compiled movie clip:

fl.getDocumentDOM().library.items[3].convertToCompiledClip();

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");

symbolItem.exportSWF()

Availability
Flash MX 2004.

Usage

symbolItem.exportSWF(outputURI)

This manual is related to the following products: