导出SWF----Indesign Script

10-04-06 12:22   View:1185

var myFile = new File("/E/Indesign_dev/test/exportSwf.swf");

//大小(像素)

app.swfExportPreferences.fitMethod = FitMethodSettings.FIT_PREDEFINED_SETTINGS;  //缩放

app.swfExportPreferences.fitScale = 100;     //缩放100%

//页码

app.swfExportPreferences.pageRange = "4-5"         //指定页   PageRange.ALL_PAGES所有页

app.swfExportPreferences.dynamicDocumentExportReaderSpreads = false;  //是否跨页

app.swfExportPreferences.rasterizePages = false;   //栅格化页面

app.swfExportPreferences.generateHTML = false;     //是否生成HTML页面

app.swfExportPreferences.viewSWFAfterExporting = false;  //导出后是否查看SWF

//文本

app.swfExportPreferences.textExportPolicy = DynamicDocumentsTextExportPolicy.LIVE;  //Indesign文本到flash文本

//交互性

app.swfExportPreferences.includeButtons = false;   //是否包含按钮

app.swfExportPreferences.includeHyperlinks = true;   //是否包含超链接

app.swfExportPreferences.includePageTransitions = true;  // 是否包含页面过渡效果

app.swfExportPreferences.includeInteractivePageCurl = true;  // 是否包含交互卷边

//图像压缩

app.swfExportPreferences.rasterCompression = RasterCompressionOptions.AUTOMATIC_COMPRESSION;  // 自动

//JPEG品质

app.swfExportPreferences.jpegQualityOptions = DynamicDocumentsJPEGQualityOptions.MEDIUM;  //

//曲线品质

app.swfExportPreferences.curveQuality = SWFCurveQualityValue.MEDIUM;  //

app.activeDocument.exportFile(ExportFormat.SWF, myFile, false);

 

 

Feedback


  • No comments posted yet.
Title:
 
Name:
 
URL:

Comments:
 

Because of the cache,you may see your comments several minutes later.


Main Feeds

Copyright © 2003-2007 by 方继祥