Sg2.9
Help with ExportOptionsFlash();
Recent RSS
Help with ExportOptionsFlash();
From:  Sam Albert
Date:  1. August 2006, 17:07

Hey all~

I'm completly new to javascript, and am having trouble figuring this out:

var exportOptions = new ExportOptionsFlash();
var formatType = ExportType.FLASH;
var fileName= new File("~/test.swf");
exportOptions.resolution = 100;

app.activeDocument.exportFile(fileName, formatType, exportOptions);

This works fine.

...But how do I use the property: backgroundLayers?
Say I just want the first 2 layers of my file to be exported, would this work?

I realize that I need a "list of layers to be included as the static background of the exported Flash frames", but can't figure out the syntax to do this. Any help is greatly appreciated!!!

  • Sam
Re: Help with ExportOptionsFlash();
From:  Sam Albert
Date:  1. August 2006, 17:30

Hmm.. Im using Illustrator CS2, and I'm scripting in a regular 'ole text editor. I'm referencing JavaScriptGuide... does this make sense?

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
RandomTools 21.08.08