I keep getting a "Missing ; from statement"
Also how do you reference the linkage id? I'm completely stuck. What i am trying ot do is write a script that selects a movieclip from the library, exports it as a Flash movie (swf) to an external folder and names the swf as the linkage ID in the moveiclip, then iterate through the rest of the movie clips in the library until it has exported all movieclips in the library.
Here is what i have so far:
// create new project
fl.createDocument();
// shortcuts
var doc = fl.getDocumentDOM();
var library = doc.library;
// create an instance of library object
var mylibrary = fl.getDocumentDOM().library.art;
// get reference on mc
var mc:movieclip = mylibrary.items(movieclip);
var linkageIdentifier = String;
var swfName = linkageIdentifier;
var UIN = library.items[library.findItemIndex(swfName)];
// choose export folder
var exportFolder = fl.browseForFolderURL('Select the folder to which you want to export the images to');
var separator = '/';
// export movieclip as swf
var mc = library.items[library.findItemIndex(swfName)];
var exportPath = exportFolder + '/' + imageName + '.swf';
fl.trace[('Exporting ' + filenameFromURI(exportPath) + ' ...')];
mc.export movieclip as swf
I keep getting "missing ; from statement" and I don't think i am declaring my variable correctly to reference the lniakge ID.
Any help would be IMMENSELY appreciated!!