<?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>Pario TechnoBlob &#187; decompose</title>
	<atom:link href="http://pario.no/tag/decompose/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 26 Apr 2012 08:18:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Howto decompose a SWF Adobe Flash file</title>
		<link>http://pario.no/2009/06/24/howto-decompose-a-swf-adobe-flash-file/</link>
		<comments>http://pario.no/2009/06/24/howto-decompose-a-swf-adobe-flash-file/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 22:15:25 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[decompose]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[SWF]]></category>
		<category><![CDATA[swfextract]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1157</guid>
		<description><![CDATA[This post describes howto decompose a SWF Flash-file using linux and a program named swfextract. The post came to life because I had to do some changes to one of my flash presentations but I had deleted all the source files. After searching the Internet i doscovered swfextract. SWF Tools is a collection of SWF [...]]]></description>
			<content:encoded><![CDATA[<p>This post describes howto decompose a SWF Flash-file using linux and a program named <strong>swfextract</strong>. The post came to life because I had to do some changes to one of my flash presentations but I had deleted all the source files. After searching the Internet i doscovered <strong>swfextract</strong>.</p>
<p>SWF Tools is a collection of SWF (Flash) manipulation and creation utilities like pdf2swf, jpeg2swf, png2swf, gif2swf, font2swf, wav2swf, swfcombine, swfdump, swfstrings, swfbbox and swfc. But I&#8217;m only going to use swfextract in this post.</p>
<p>If you don&#8217;t have it installed on your system, download it and install the deb-package</p>
<pre>
# wget http://http.us.debian.org/debian/pool/main/s/swftools/swftools_0.8.1-2.1_i386.deb
# dpkg -i swftools_0.8.1-2.1_i386.deb</pre>
</pre>
<p>The swftools package depends on several packages like libgif4 libt1-5 and they should be installed before swftools</p>
<pre>
# aptitude install libgif4 libt1-5</pre>
<p>I was interested in extracting the image files in my Flash presentation and did the following to determine what was in the presentation file</p>
<pre>
# swfextract flashfile.swf
Objects in file flashfile.swf:
 [-i] 5 Shapes: ID(s) 1, 3, 5, 7, 9
 [-j] 4 JPEGs: ID(s) 2, 6, 8, 10
 [-f] 1 Frame: ID(s) 0</pre>
<p>As we see above there are 4 JPEG-files I'm interested in extracting and their IDs.</p>
<p>I did the following to extract the image files</p>
<pre>
# swfextract -i 2 -j 2,6,8,10 flashfile.swf</pre>
<p>Result files</p>
<pre>
output.swf
pic10.jpg
pic2.jpg
pic6.jpg
pic8.jpg</pre>
<p>If you don't use the -i switch you will end up with only one output.jpg file.</p>
<p>You are now ready to recreate the Flash presentation using the extracted image files.</p>
<p><strong>Source</strong><br />
<a href="http://www.swftools.org">http://www.swftools.org</a><br />
<a href="http://linuxappfinder.com/package/swftools">SWF Tools</a></p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/www.swftools.org","http:\/\/linuxappfinder.com\/package\/swftools"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDkvMDYvMjQvaG93dG8tZGVjb21wb3NlLWEtc3dmLWFkb2JlLWZsYXNoLWZpbGUvPHdwdGI%2BSG93dG8gZGVjb21wb3NlIGEgU1dGIEFkb2JlIEZsYXNoIGZpbGU8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2009/06/24/howto-decompose-a-swf-adobe-flash-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

