ExportOptionsFlash
ExportOptionsFlash
Section titled “ExportOptionsFlash”exportOptionsFlash
Description
Section titled “Description”Options for exporting a document as a Macromedia® Flash® (SWF) file, used with the Document.exportFile() method. All properties are optional.
When you export a document, the appropriate file extension is appended automatically. You should not include any file extension in the file specification.
Properties
Section titled “Properties”ExportOptionsFlash.artClipping
Section titled “ExportOptionsFlash.artClipping”exportOptionsFlash.artClipping
Description
Section titled “Description”How the art should be clipped during output.
Default: ArtClippingOption.OUTPUTARTBOUNDS
.
ExportOptionsFlash.artboardRange
Section titled “ExportOptionsFlash.artboardRange”exportOptionsFlash.artboardRange
Description
Section titled “Description”If saveMultipleArtboards
is true
, this is considered for multi-asset extraction, which specifies the artboard range. An empty string extracts all the artboards.
Default: empty String.
String.
ExportOptionsFlash.backgroundColor
Section titled “ExportOptionsFlash.backgroundColor”exportOptionsFlash.backgroundColor
Description
Section titled “Description”The background color of the exported Flash frames.
ExportOptionsFlash.backgroundLayers
Section titled “ExportOptionsFlash.backgroundLayers”exportOptionsFlash.backgroundLayers
Description
Section titled “Description”A list of layers to be included as the static background of the exported Flash frames.
Array of Layers
ExportOptionsFlash.blendAnimation
Section titled “ExportOptionsFlash.blendAnimation”exportOptionsFlash.blendAnimation
Description
Section titled “Description”The animation type for blended objects.
Default: BlendAnimationType.NOBLENDANIMATION
.
ExportOptionsFlash.compressed
Section titled “ExportOptionsFlash.compressed”exportOptionsFlash.compressed
Description
Section titled “Description”If true
, the exported file should be exported compressed.
Default: false
.
Boolean.
ExportOptionsFlash.convertTextToOutlines
Section titled “ExportOptionsFlash.convertTextToOutlines”exportOptionsFlash.convertTextToOutlines
Description
Section titled “Description”If true
, all text is converted to vector paths; preserves the visual appearance of type in all Flash players.
Default: false
.
Boolean.
ExportOptionsFlash.curveQuality
Section titled “ExportOptionsFlash.curveQuality”exportOptionsFlash.curveQuality
Description
Section titled “Description”The amount of curve information that should be presented.
Default: 7.
Number (long).
ExportOptionsFlash.exportAllSymbols
Section titled “ExportOptionsFlash.exportAllSymbols”exportOptionsFlash.exportAllSymbols
Description
Section titled “Description”If true
, export all symbols defined in the palette.
Default: false
.
Boolean.
ExportOptionsFlash.exportStyle
Section titled “ExportOptionsFlash.exportStyle”exportOptionsFlash.exportStyle
Description
Section titled “Description”The style in which the exported data should be created in Flash.
Default: FlashExportStyle.ASFLASHFILE
.
ExportOptionsFlash.exportVersion
Section titled “ExportOptionsFlash.exportVersion”exportOptionsFlash.exportVersion
Description
Section titled “Description”The version of the exported SWF file.
Default: FlashExportVersion.FlashVersion9
.
ExportOptionsFlash.frameRate
Section titled “ExportOptionsFlash.frameRate”exportOptionsFlash.frameRate
Description
Section titled “Description”The display rate in frames per second.
Range: 0.01-120.0.
Default: 12.0.
Number (double).
ExportOptionsFlash.ignoreTextKerning
Section titled “ExportOptionsFlash.ignoreTextKerning”exportOptionsFlash.ignoreTextKerning
Description
Section titled “Description”If true
, ignore kerning information in text objects.
Default: false
.
Boolean.
ExportOptionsFlash.imageFormat
Section titled “ExportOptionsFlash.imageFormat”exportOptionsFlash.imageFormat
Description
Section titled “Description”How should the image in the exported Flash file be compressed.
Default: FlashImageFormat.LOSSLESS
.
ExportOptionsFlash.includeMetadata
Section titled “ExportOptionsFlash.includeMetadata”exportOptionsFlash.includeMetadata
Description
Section titled “Description”If true
, include minimal XMP metadata in the SWF file.
Default: false
.
Boolean.
ExportOptionsFlash.jpegMethod
Section titled “ExportOptionsFlash.jpegMethod”exportOptionsFlash.jpegMethod
Description
Section titled “Description”Specifies the JPEG method to use.
Default: FlashJPEGMethod.Standard
.
ExportOptionsFlash.jpegQuality
Section titled “ExportOptionsFlash.jpegQuality”exportOptionsFlash.jpegQuality
Description
Section titled “Description”Level of compression to use. Range 1 to 10.
Default: 3.
Number (long).
ExportOptionsFlash.layerOrder
Section titled “ExportOptionsFlash.layerOrder”exportOptionsFlash.layerOrder
Description
Section titled “Description”The order in which layers are exported to Flash frames.
Default: LayerOrderType.BOTTOMUP
.
ExportOptionsFlash.looping
Section titled “ExportOptionsFlash.looping”exportOptionsFlash.looping
Description
Section titled “Description”If true
, the Flash file is set to loop when run.
Default: false
.
Boolean.
ExportOptionsFlash.playbackAccess
Section titled “ExportOptionsFlash.playbackAccess”exportOptionsFlash.playbackAccess
Description
Section titled “Description”The access level for the exported SWF file.
Default: FlashPlaybackSecurity.PlaybackLocal
.
ExportOptionsFlash.preserveAppearance
Section titled “ExportOptionsFlash.preserveAppearance”exportOptionsFlash.preserveAppearance
Description
Section titled “Description”If true
, preserve appearance. If false
, preserve editability.
Default: false
.
Boolean.
ExportOptionsFlash.readOnly
Section titled “ExportOptionsFlash.readOnly”exportOptionsFlash.readOnly
Description
Section titled “Description”If true
, export as read-only file.
Default: false
.
Boolean.
ExportOptionsFlash.replacing
Section titled “ExportOptionsFlash.replacing”exportOptionsFlash.replacing
Description
Section titled “Description”If a file with the same name already exists, should it be replaced.
Default: SaveOptions.PROMPTTOSAVECHANGES
.
ExportOptionsFlash.resolution
Section titled “ExportOptionsFlash.resolution”exportOptionsFlash.resolution
Description
Section titled “Description”The resolution in pixels per inch.
Range: 72-2400.
Default: 72.
Number (double).
ExportOptionsFlash.saveMultipleArtboards
Section titled “ExportOptionsFlash.saveMultipleArtboards”exportOptionsFlash.saveMultipleArtboards
Description
Section titled “Description”If true
, all artboards or range of artboards are saved.
Default: false
.
Boolean.
ExportOptionsFlash.typename
Section titled “ExportOptionsFlash.typename”exportOptionsFlash.typename
Description
Section titled “Description”The class name of the referenced object.
String; read-only.
Example
Section titled “Example”Exporting to Flash format
Section titled “Exporting to Flash format”// Exports current document to destFile as a flash file with specified options,// destFile contains the full path including the file name
function exportToFlashFile(destFile) { if (app.documents.length > 0) { var exportOptions = new ExportOptionsFlash(); exportOptions.resolution = 150;
var type = ExportType.FLASH; var fileSpec = new File(destFile);
app.activeDocument.exportFile(fileSpec, type, exportOptions); }}