<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>All I don&#039;t know &#187; JSFL</title>
	<atom:link href="http://blog.derraab.com/category/jsfl/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.derraab.com</link>
	<description>About Flash™, Flex™, software development and my computer. And JavaScript.</description>
	<lastBuildDate>Sat, 26 Nov 2011 18:31:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Export multiple .fla files using .jsfl</title>
		<link>http://blog.derraab.com/2008/10/08/export-multiple-fla-files-using-jsfl/</link>
		<comments>http://blog.derraab.com/2008/10/08/export-multiple-fla-files-using-jsfl/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 09:09:41 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[JSFL]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=47</guid>
		<description><![CDATA[Another very basic information. I had to export multiple .fla files so I wrote my first .jsfl file: // Binary Directory path (file:// syntax) var binDir = &#34;file:///Users/.../swf/&#34;; // Source Directory path (file:// syntax) var srcDir = &#34;file:///Users/.../fla/&#34;; // .fla &#8230; <a href="http://blog.derraab.com/2008/10/08/export-multiple-fla-files-using-jsfl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Another very basic information. I had to export multiple .fla files so I wrote my first .jsfl file:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Binary Directory path (file:// syntax)</span>
<span style="color: #003366; font-weight: bold;">var</span> binDir <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;file:///Users/.../swf/&quot;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Source Directory path (file:// syntax)</span>
<span style="color: #003366; font-weight: bold;">var</span> srcDir <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;file:///Users/.../fla/&quot;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// .fla file names</span>
<span style="color: #003366; font-weight: bold;">var</span> fileNames <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">&quot;file1&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;file2&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;file3&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> fileName<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> fileSrc<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> fileBin<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> fla<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> fileNames.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span> <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    fileName <span style="color: #339933;">=</span> fileNames<span style="color: #009900;">&#91;</span> i <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    fileSrc <span style="color: #339933;">=</span> srcDir <span style="color: #339933;">+</span> fileName <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;.fla&quot;</span><span style="color: #339933;">;</span>
    fileBin <span style="color: #339933;">=</span> binDir <span style="color: #339933;">+</span> fileName <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;.swf&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    fla <span style="color: #339933;">=</span> fl.<span style="color: #660066;">openDocument</span><span style="color: #009900;">&#40;</span> fileSrc <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    fla.<span style="color: #660066;">exportSWF</span><span style="color: #009900;">&#40;</span> fileBin<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
    fl.<span style="color: #660066;">closeDocument</span><span style="color: #009900;">&#40;</span> fla<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2008/10/08/export-multiple-fla-files-using-jsfl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

