473,763 Members | 7,719 Online
Bytes | Software Development & Data Engineering Community
+ 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.createDocume nt();

// shortcuts
var doc = fl.getDocumentD OM();
var library = doc.library;

// create an instance of library object
var mylibrary = fl.getDocumentD OM().library.ar t;

// get reference on mc
var mc:movieclip = mylibrary.items (movieclip);
var linkageIdentifi er = String;
var swfName = linkageIdentifi er;
var UIN = library.items[library.findIte mIndex(swfName)];


// choose export folder
var exportFolder = fl.browseForFol derURL('Select the folder to which you want to export the images to');
var separator = '/';

// export movieclip as swf
var mc = library.items[library.findIte mIndex(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 3562

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

Similar topics

3
3069
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
3926
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" value="/IID.swf"> <embed src="/IID.swf" width="90%" height="50" TYPE="application/x-hockwave- flash"> </embed> </object> </td>
0
2028
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 taht webcontrol or class under it causes that problem. Maybe the following code is too long to analyze so pls redirect me whare I could read/download the code suitable for that purposes.
0
2046
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
2803
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 javascript part and then the movies are being shown - but not in the right way. And when the javascript is there no movies are shown. I would really appreciate if someone could help me! Thanks!
1
2449
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 larger than that - but I presume I should be able to just set its rendered / desired dimensions when I embed it in the HTML, as usual. The odd thing is that the .swf, when embedded and viewed in the web page, is displayed extremely small. I...
1
2365
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 me to load text via variables. My issue is this: when I have both movieclips, flash cs 4 crashes. if I delete on of the layers the problem doesn't exist. The code for movieclip layer 1 is:
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9997
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9822
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8821
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6642
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.