Skip to content

ExportOptionsFlash

exportOptionsFlash

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.


exportOptionsFlash.artClipping

How the art should be clipped during output.

Default: ArtClippingOption.OUTPUTARTBOUNDS.

ArtClippingOption


exportOptionsFlash.artboardRange

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

The background color of the exported Flash frames.

RGBColor


exportOptionsFlash.backgroundLayers

A list of layers to be included as the static background of the exported Flash frames.

Array of Layers


exportOptionsFlash.blendAnimation

The animation type for blended objects.

Default: BlendAnimationType.NOBLENDANIMATION.

BlendAnimationType


exportOptionsFlash.compressed

If true, the exported file should be exported compressed.

Default: false.

Boolean.


exportOptionsFlash.convertTextToOutlines

If true, all text is converted to vector paths; preserves the visual appearance of type in all Flash players.

Default: false.

Boolean.


exportOptionsFlash.curveQuality

The amount of curve information that should be presented.

Default: 7.

Number (long).


exportOptionsFlash.exportAllSymbols

If true, export all symbols defined in the palette.

Default: false.

Boolean.


exportOptionsFlash.exportStyle

The style in which the exported data should be created in Flash.

Default: FlashExportStyle.ASFLASHFILE.

FlashExportStyle


exportOptionsFlash.exportVersion

The version of the exported SWF file.

Default: FlashExportVersion.FlashVersion9.

FlashExportVersion


exportOptionsFlash.frameRate

The display rate in frames per second.

Range: 0.01-120.0.

Default: 12.0.

Number (double).


exportOptionsFlash.ignoreTextKerning

If true, ignore kerning information in text objects.

Default: false.

Boolean.


exportOptionsFlash.imageFormat

How should the image in the exported Flash file be compressed.

Default: FlashImageFormat.LOSSLESS.

FlashImageFormat


exportOptionsFlash.includeMetadata

If true, include minimal XMP metadata in the SWF file.

Default: false.

Boolean.


exportOptionsFlash.jpegMethod

Specifies the JPEG method to use.

Default: FlashJPEGMethod.Standard.

FlashJPEGMethod


exportOptionsFlash.jpegQuality

Level of compression to use. Range 1 to 10.

Default: 3.

Number (long).


exportOptionsFlash.layerOrder

The order in which layers are exported to Flash frames.

Default: LayerOrderType.BOTTOMUP.

LayerOrderType


exportOptionsFlash.looping

If true, the Flash file is set to loop when run.

Default: false.

Boolean.


exportOptionsFlash.playbackAccess

The access level for the exported SWF file.

Default: FlashPlaybackSecurity.PlaybackLocal.

FlashPlaybackSecurity


exportOptionsFlash.preserveAppearance

If true, preserve appearance. If false, preserve editability.

Default: false.

Boolean.


exportOptionsFlash.readOnly

If true, export as read-only file.

Default: false.

Boolean.


exportOptionsFlash.replacing

If a file with the same name already exists, should it be replaced.

Default: SaveOptions.PROMPTTOSAVECHANGES.

SaveOptions


exportOptionsFlash.resolution

The resolution in pixels per inch.

Range: 72-2400.

Default: 72.

Number (double).


exportOptionsFlash.saveMultipleArtboards

If true, all artboards or range of artboards are saved.

Default: false.

Boolean.


exportOptionsFlash.typename

The class name of the referenced object.

String; read-only.


// 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);
}
}