<?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>Pixelbath &#187; swf</title>
	<atom:link href="http://www.pixelbath.com/blog/tag/swf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelbath.com/blog</link>
	<description>Webcomics, video, Photoshop and other design-related stuff</description>
	<lastBuildDate>Fri, 10 Jun 2011 16:59:19 +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>JSFL: Batch Publish Flash Files</title>
		<link>http://www.pixelbath.com/blog/2009/01/jsfl-batch-publish-flash-files/</link>
		<comments>http://www.pixelbath.com/blog/2009/01/jsfl-batch-publish-flash-files/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 20:16:55 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[jsfl]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://www.pixelbath.com/blog/?p=199</guid>
		<description><![CDATA[This is a script I wrote to batch publish an entire folder of .fla files. The script we use is far longer, as our version is for our courseware folders. In ours, we parse the filename of each to a CSV file with the chapter, section, sub-section, and duration of each .swf. JSFL rocks. // [...]]]></description>
			<content:encoded><![CDATA[<p>This is a script I wrote to batch publish an entire folder of .fla files.  The script we use is far longer, as our version is for our courseware folders.  In ours, we parse the filename of each to a CSV file with the chapter, section, sub-section, and duration of each .swf.</p>
<p>JSFL rocks.</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="co1">// pop up a dialog to get the folder, then fetch the files therein</span><br />
<span class="kw2">var</span> folder = fl.<span class="kw3">browseForFolderURL</span><span class="br0">&#40;</span><span class="st0">"Choose a folder to publish:"</span><span class="br0">&#41;</span>;<br />
<span class="kw2">var</span> files = FLfile.<span class="me1">listFolder</span><span class="br0">&#40;</span>folder + <span class="st0">"/*.fla"</span>, <span class="st0">"files"</span><span class="br0">&#41;</span>;</p>
<p><span class="kw1">for</span> <span class="br0">&#40;</span>file <span class="kw1">in</span> files<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> curFile = files<span class="br0">&#91;</span>file<span class="br0">&#93;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// open document, publish, and close</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; fl.<span class="kw3">openDocument</span><span class="br0">&#40;</span>folder + <span class="st0">"/"</span> + curFile<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; fl.<span class="kw3">getDocumentDOM</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="kw3">publish</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; fl.<span class="kw3">closeDocument</span><span class="br0">&#40;</span>fl.<span class="kw3">getDocumentDOM</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.pixelbath.com/blog/2009/01/jsfl-batch-publish-flash-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

