473,474 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Exporting Movieclips As SWF's from Flash using JSFL

1 New Member
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!!
Dec 13 '07 #1
0 3543

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: sureshsundar007 | last post by:
Hi all, I want to know how to read the Flash file (.SWF) information using C#. Any help is greatly appreciated. Thanks, Suresh.
1
by: Guest | last post by:
i want to insert a swf file in a .net page ,but it doesn't load in run mode this is the code: <td width="100%" colspan="2" height="3"> <object width="90%" height="50"> <param name="movie"...
0
by: Dariusz Tomon | last post by:
Hi I have got the problem with web control displaying flash (swf) object. The problem is connected with the fact that 1-st swf should loads the second one. But it doesn't. That's why I suspects...
0
by: fblake | last post by:
Active Flash V1.0 http://www.activeup.com/products/components/activeflash Price - $295 Evaluation - http://dl.filekicker.com/send/file/184524-5045/ActiveFlash1.zip
3
by: huhey | last post by:
Hi I am trying to make a html page where I have 3 swf files which I would to be shown randomly when you refresh the page. However I can't get the code to work. I have tried to delete the...
1
by: luispunchy | last post by:
I have a .swf file that is going in the web page for the logo. It is supposed to be 610px wide and 81px in height when rendered in the HTML. The actual .swf file, when viewed standalone, appears much...
1
AutumnsDecay
by: AutumnsDecay | last post by:
Hey there. I have a flash project that I'm working on and I'm getting a weird error. I have a flash document with two movieclips. Inside each movieclip is a dynamic text field, which will allow...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.