<?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>mandarin.no &#187; air</title>
	<atom:link href="http://mandarin.no/category/air/feed/" rel="self" type="application/rss+xml" />
	<link>http://mandarin.no</link>
	<description></description>
	<lastBuildDate>Sun, 21 Mar 2010 20:33:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Garbage collecting in AIR</title>
		<link>http://mandarin.no/as3/garbage-collecting-in-air/</link>
		<comments>http://mandarin.no/as3/garbage-collecting-in-air/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 15:06:57 +0000</pubDate>
		<dc:creator>Thomas Viktil</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[garbage collector]]></category>
		<category><![CDATA[memory usage]]></category>
		<category><![CDATA[system.gc]]></category>

		<guid isPermaLink="false">http://mandarin.no/?p=110</guid>
		<description><![CDATA[At a recent project I had to make a video loop indefinitely and most importanly: seemless. I tried all kinds of different methods, including using FLV, F4V, M4V, FLVplayback component, the Video class, embedded video and a few other. The only solution that worked was (in my opinion) the most outdated one. I setup a [...]]]></description>
			<content:encoded><![CDATA[<p>At a recent project I had to make a video loop indefinitely and most importanly: seemless. I tried all kinds of different methods, including using FLV, F4V, M4V, FLVplayback component, the Video class, embedded video and a few other. The only solution that worked was (in my opinion) the most outdated one.</p>
<p>I setup a new SWF file in Flash Professional and imported the video to stage. I chose to create keyframes for each frame of the video, set the JPG compression rate to 100 and then exported the video as a SWF. This was the only method I could find that would make the video loop seamlessly. It solved one problem but introduced another.</p>
<p>As the application ran I monitored the memory usage and soon discovered that the application ate up more and more memory for each time the video looped. To solve this problem I forced the garbage collector to run each time the video completed a loop. This kept the memory usage stable and the application has now been running for about a month.</p>
<p>This is how you run the garbage collector:</p>
<blockquote>
<pre>System.gc()</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mandarin.no/as3/garbage-collecting-in-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe AIR: Error when creating AIR file: 303</title>
		<link>http://mandarin.no/flex/adobe-air-error-when-creating-air-file-303/</link>
		<comments>http://mandarin.no/flex/adobe-air-error-when-creating-air-file-303/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 14:42:59 +0000</pubDate>
		<dc:creator>Thomas Viktil</dc:creator>
				<category><![CDATA[air]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[application icon]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[compile error]]></category>
		<category><![CDATA[create file]]></category>
		<category><![CDATA[flex builder]]></category>
		<category><![CDATA[flex sdk]]></category>
		<category><![CDATA[gumbo]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[non-embedded files]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://mandarin.no/?p=77</guid>
		<description><![CDATA[I&#8217;m currently using Flex Builder 3.0.1.205647 with Flex SDK 3.1.0 and I got an error saying Flex couldn&#8217;t create my AIR file. After a bit of googling I found out that it is a bug in Flex Builder 3 (Bug report #FB-11712), and it seems like it will be fixed in the Gumbo release. The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently using Flex Builder 3.0.1.205647 with Flex SDK 3.1.0 and I got an error saying Flex couldn&#8217;t create my AIR file. After a bit of googling I found out that it is a bug in Flex Builder 3 (<a href="http://bugs.adobe.com/jira/browse/FB-11712">Bug report #FB-11712</a>), and it seems like it will be fixed in the Gumbo release.</p>
<p>The bug is related to adding custom application icons. You do this by editing the application&#8217;s xml file. To be more precise, at the lines which looks like these:</p>
<pre>&lt;!-- The icon to display for the file type. Optional. --&gt;
&lt;icon&gt;
   &lt;image16x16&gt;icon_16.png&lt;/image16x16&gt;
   &lt;image32x32&gt;icon_32.png&lt;/image32x32&gt;
   &lt;image48x48&gt;icon_48.png&lt;/image48x48&gt;
   &lt;!--image128x128&gt;&lt;/image128x128--&gt;
&lt;/icon&gt;</pre>
<p>The solution to this bug is actually quite simple. Simply comment out the icons you don&#8217;t plan to use -just like I have done in the example above. Oh, and be sure to tick the check box &#8220;Copy non-embedded files to output folder&#8221; in Project -&gt; Properties -&gt; Flex Compiler.</p>
]]></content:encoded>
			<wfw:commentRss>http://mandarin.no/flex/adobe-air-error-when-creating-air-file-303/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
