<?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>Flassari.is &#187; Flash</title>
	<atom:link href="http://flassari.is/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://flassari.is</link>
	<description></description>
	<lastBuildDate>Fri, 13 Apr 2012 11:51:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>External Interface error: Object expected</title>
		<link>http://flassari.is/2012/02/external-interface-error-object-expected/</link>
		<comments>http://flassari.is/2012/02/external-interface-error-object-expected/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 14:38:43 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Stage3D]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[external interface]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[FB.ui]]></category>
		<category><![CDATA[hideFlashCallback]]></category>
		<category><![CDATA[Object expected]]></category>
		<category><![CDATA[swf]]></category>
		<category><![CDATA[visibility]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=480</guid>
		<description><![CDATA[It&#8217;s taken me a while to figure this one out. I have a flash game on facebook that uses Stage3D, so window mode has to be set to &#8220;direct&#8221; which means that any time facebook wants to overlay some elements on the page they appear under the game on many browsers. Facebook has a solution [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s taken me a while to figure this one out. I have a <a href="http://facebook.angrybirds.com" target="_blank">flash game on facebook</a> that uses Stage3D, so window mode has to be set to &#8220;direct&#8221; which means that any time facebook wants to overlay some elements on the page they appear under the game on many browsers.</p>
<p>Facebook has a solution for you, on FB.init you can set your own callback function via the hideFlashCallback parameter. In this callback you <a href="http://developers.facebook.com/blog/post/637/" target="_blank">can move the flash object out of view</a> by, for example, setting the top to be -10000px whenever a Facebook dialog is opened and then putting it back when the dialog is closed.</p>
<p>I had functions registered with external interface to pause and resume the game that would get called via javascript in the hideFlashCallback callback.</p>
<p>This was working well enough but for some reason on Internet Explorer I couldn&#8217;t call the resume() function just after showing the flash object, instead I got an &#8220;Object Expected&#8221; error.</p>
<p>Internet Explorer does not support calling external interface methods for flash objects if they are not visible. Since it could be a race condition (DOM might not render the flash object before the function was called) I added a 100ms delay to the call to resume(), only for IE. This seemed to work fine.</p>
<p>But once we got close to production this error re-appeared, but only when Facebook&#8217;s purchase dialog had been shown. Weird! No amount of delay made the external interface calls work again. If I showed the purchase dialog once and closed it, it would be no longer possible to call any external interface functions for the flash object until a page refresh. This was not acceptable.</p>
<p>After a lot of debugging, I noticed that even though we have registered for the hideFlashCallback function, facebook STILL sets the visibility of the flash object to &#8220;hidden&#8221; after 200ms.</p>
<p>As can be seen in <a href="https://developers.facebook.com/docs/reference/javascript/#hide_flash_callback" target="_blank">Facebook&#8217;s documentation</a>: &#8220;The custom action must complete within 200ms or the Flash object will be hidden automatically regardless.&#8221;</p>
<p>Apparently the fact that we&#8217;re changing the visibility of the flash object along with whatever facebook does differently during the purchase dialog (overlay a white div over the whole page) breaks all external interface functionality.</p>
<p>This has a simple fix though, create a higher priority CSS rule that makes the flash object always visible:</p>
<pre class="brush: xml">
<style>
#MyFlashObjectID {
    visibility: visible !important;
}
</style>
</pre>
<p>It doesn&#8217;t need to be hidden since we are moving it out of view ourselves anyways.</p>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2012/02/external-interface-error-object-expected/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Showing static variables in the Flash Builder 4.5 debugger</title>
		<link>http://flassari.is/2012/01/showing-static-variables-in-the-flash-builder-4-5-debugger/</link>
		<comments>http://flassari.is/2012/01/showing-static-variables-in-the-flash-builder-4-5-debugger/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 08:15:16 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[builder]]></category>
		<category><![CDATA[debugger]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[static]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=472</guid>
		<description><![CDATA[For some reason this option is turned off by default. To see the static variables of your classes, simply click the small down-facing triangle on the top-right of the variables panel, and click Flex->Show Static Variables.]]></description>
			<content:encoded><![CDATA[<p>For some reason this option is turned off by default.<br />
To see the static variables of your classes, simply click the small down-facing triangle on the top-right of the variables panel, and click Flex->Show Static Variables.</p>
<p><img src="http://flassari.is/wp-content/uploads/2012/01/Static.png" alt="Show static variables in Flash Builder" title="Show static variables in Flash Builder" width="433" height="175" class="alignnone size-full wp-image-473" /></p>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2012/01/showing-static-variables-in-the-flash-builder-4-5-debugger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mxmlc ANT compiler error: &#8220;Error: Java heap space&#8221;</title>
		<link>http://flassari.is/2011/09/mxmlc-ant-compiler-error-error-java-heap-space/</link>
		<comments>http://flassari.is/2011/09/mxmlc-ant-compiler-error-error-java-heap-space/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 12:34:08 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[ANT]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[ANT_OPTS]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fork]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java heap space]]></category>
		<category><![CDATA[jvm]]></category>
		<category><![CDATA[maxmemory]]></category>
		<category><![CDATA[mxmlc]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=441</guid>
		<description><![CDATA[A simple error that causes a lot of headache that has a simple solution that is hard to find on the internet. Don&#8217;t you just love these problems? If you are calling mxmlc via ANT you&#8217;ve probably seen this error and had to resort to solutions like setting the ANT_OPTS or Java arguments for the [...]]]></description>
			<content:encoded><![CDATA[<p>A simple error that causes a lot of headache that has a simple solution that is hard to find on the internet.<br />
Don&#8217;t you just love these problems?</p>
<p>If you are calling mxmlc via ANT you&#8217;ve probably seen this error and had to resort to solutions like setting the ANT_OPTS or Java arguments for the SDK on every single computer that uses that build script.</p>
<p>The solution is actually much simpler than that, mxmlc allows you to set this in the ANT target itself. Just add the parameters fork=&#8221;true&#8221; to make it run on it&#8217;s own Java thread, and then set maxmemory to something like &#8220;1024m&#8221;.</p>
<pre class="brush: as3"><mxmlc
	file="Main.as"
	output="Output.swf"
	fork="true"
	maxmemory="1024m"
>
	<!-- Other configurations -->
</mxmlc></pre>
<p>It would have been nice if adobe had this in the <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_1.html">documentation</a>, but no such luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2011/09/mxmlc-ant-compiler-error-error-java-heap-space/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AS3 Polygon Clipper</title>
		<link>http://flassari.is/2011/05/as3-polygon-clipper/</link>
		<comments>http://flassari.is/2011/05/as3-polygon-clipper/#comments</comments>
		<pubDate>Mon, 23 May 2011 09:00:35 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[Alchemy]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[alchemy]]></category>
		<category><![CDATA[boolean]]></category>
		<category><![CDATA[clip]]></category>
		<category><![CDATA[clipper]]></category>
		<category><![CDATA[clipping]]></category>
		<category><![CDATA[commercial]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[GPC]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[mask]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[polygon]]></category>
		<category><![CDATA[polygon boolean operation]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[subtract]]></category>
		<category><![CDATA[swc]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=408</guid>
		<description><![CDATA[I was looking for an open source polygon clipper library for AS3 to use on a commercial project. I found a few ports of the General Polygon Clipper library (GPC) but it is only free for non-commercial projects. After more searching around I found this excellent library called Clipper by Angus Johnson. It did not [...]]]></description>
			<content:encoded><![CDATA[<p><center><img src="http://flassari.is/wp-content/uploads/2011/05/A-B.png" title="Polygon Clipper" /></center><br />
I was looking for an open source polygon clipper library for AS3 to use on a commercial project.<br />
I found a <a href="http://code.google.com/p/gpcas/">few</a> <a href="http://code.google.com/p/polygonal/wiki/GeneralPolygonClipperAlgorithm">ports</a> of the General Polygon Clipper library (<a href="http://www.cs.man.ac.uk/~toby/alan/software/">GPC</a>) but it is <a href="http://www.cs.man.ac.uk/~toby/alan/software/#Licensing">only free for non-commercial projects</a>.<br />
After more searching around I found this excellent library called <a href="http://www.angusj.com/delphi/clipper.php">Clipper by Angus Johnson</a>. It did not have an AS3 port so I made one using <a href="http://labs.adobe.com/technologies/alchemy/">Alchemy</a> to wrap the c++ code.</p>
<p>The SWC and source code can be found on github: <a href="https://github.com/Flassari/as3clipper">https://github.com/Flassari/as3clipper</a></p>
<p>It is completely free and open source for both personal and commercial projects. Clipper uses the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>.</p>
<p>Supported clipping operations: difference, intersection, union and XOR.</p>
<p>Here&#8217;s an example of how to use the AS3 port after importing the Clipper.swc file:</p>
<pre class="brush:as3">import com.flassari.geom.Clipper;
import com.flassari.geom.ClipType;

var subjectPolygon:Array = [new Point(0, 0), new Point(200, 0), new Point(100, 200)];

var clipPolygon:Array = [new Point(0, 100), new Point(200, 100), new Point(300, 200)];

var resultPolygons:Array = Clipper.clipPolygon(subjectPolygon, clipPolygon, ClipType.DIFFERENCE);</pre>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2011/05/as3-polygon-clipper/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Preloader without a loader-swf in AS3</title>
		<link>http://flassari.is/2010/11/preloader-without-a-loader-swf-in-as3/</link>
		<comments>http://flassari.is/2010/11/preloader-without-a-loader-swf-in-as3/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 16:08:26 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[factory]]></category>
		<category><![CDATA[factoryclass]]></category>
		<category><![CDATA[flex sdk]]></category>
		<category><![CDATA[frame]]></category>
		<category><![CDATA[loader-swf]]></category>
		<category><![CDATA[preloader]]></category>
		<category><![CDATA[single swf]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=359</guid>
		<description><![CDATA[Here&#8217;s one method of loading your AS3 movie, using a preloader class that loads before all other classes. The flex compiler can actually split up the code for you so one class loads before all others. Even though we&#8217;re using the flex compiler to do this we do not have to have a Flex project, [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s one method of loading your AS3 movie, using a preloader class that loads before all other classes.</p>
<p>The flex compiler can actually split up the code for you so one class loads before all others. Even though we&#8217;re using the flex compiler to do this we do not have to have a Flex project, it can be a Flash project or a pure actionscript project. If we&#8217;re using a Flash project we do have to set the flex compiler path though.</p>
<p>Anyways, the way it works is that in your main class you add the Frame metadata, like this:</p>
<pre class="brush:as3">package com.flassari {
// Preloader meta tag
[Frame(factoryClass="com.flassari.Preloader")]
// Start of our own application code
[SWF(backgroundColor="#FFFFFF", frameRate="24", width="800", height="600", pageTitle="My preloaded project")]
public class Main extends Sprite
{</pre>
<p>The preloader has to extend movieClip, because behind the scenes it is using frames for its magic.<br />
In your preloader class, when it is done loading (by checking if it is at the last frame), your have to instantiate the main class with no strict typing. If you were to use strict typing, the whole application would have to load before the preloader can be shown so that would defeat the purpose of a preloader:</p>
<pre class="brush:as3">private function onEnterFrame(e:Event):void {
	if (currentFrame == totalFrames) { // If we're at the frame where Main is ready
		// Stop and clean up
		stop();
		removeEventListener(Event.ENTER_FRAME, onEnterFrame);
		// Create the main application and add it to the display list
		var mainClass:Class = getDefinitionByName("com.flassari.Main") as Class;
		addChild(new mainClass() as DisplayObject);
	}
}</pre>
<p>Just remember, everything that the preloader references will be loaded before the preloader can be shown, so keep it to a minimum.<br />
Also, because the main class is created before it is put on the stage, be sure not to reference the stage in the constructor.</p>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2010/11/preloader-without-a-loader-swf-in-as3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The OR ( &#124;&#124; ) operator in AS3</title>
		<link>http://flassari.is/2010/09/the-or-operator-in-as3/</link>
		<comments>http://flassari.is/2010/09/the-or-operator-in-as3/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 12:45:54 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[conditials]]></category>
		<category><![CDATA[if]]></category>
		<category><![CDATA[NaN]]></category>
		<category><![CDATA[null]]></category>
		<category><![CDATA[operator]]></category>
		<category><![CDATA[or]]></category>
		<category><![CDATA[or operator]]></category>
		<category><![CDATA[undefined]]></category>
		<category><![CDATA[value]]></category>
		<category><![CDATA[||]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=351</guid>
		<description><![CDATA[Here's a quick tip: the OR operator ( &#124;&#124; ) in AS3 does not return true if either condition evaluates to true; it returns the <strong>actual value</strong> of the first condition to evaluate to true. What does that mean? Lets try an example: [...] ]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick tip: the OR operator ( || ) in AS3 does not return true if either condition evaluates to true; it returns the <strong>actual value</strong> of the first condition to evaluate to true.</p>
<p>What does that mean? Lets try an example:<br />
This statement:</p>
<pre class="brush: as3">trace ( "foo" || "bar" );</pre>
<p>will trace out the string &#8220;foo&#8221;, not &#8220;true&#8221; (in an if statement &#8220;foo&#8221; will evaluate to true).</p>
<p>This statement:</p>
<pre class="brush: as3">trace ( undefined || false || "bar" );</pre>
<p>will trace out the string &#8220;bar&#8221;.</p>
<p>If no condition evaluates to true, it will return the last condition.</p>
<pre class="brush: as3">trace ( false || undefined || 0 || "" || NaN || null );</pre>
<p>will trace out &#8220;null&#8221;.</p>
<p>This can be really handy when making sure variables are not uninitialized before using them.<br />
Check out this example:</p>
<pre class="brush: as3">function doSomething(arr:Array, data:Object, path:String):void {
    this.args = arr || [];
    this.dataObject = data || {};
    this.dataUrl = path || "http://default.url";
}</pre>
<p>And even sexier (thanks <a href="http://www.tyroneneill.com/">MonkeyMagiic</a>):</p>
<pre class="brush: as3">this.args ||= [];</pre>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2010/09/the-or-operator-in-as3/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Flash Debug Player crashing Firefox</title>
		<link>http://flassari.is/2010/08/flash-debug-player-crashing-firefox/</link>
		<comments>http://flassari.is/2010/08/flash-debug-player-crashing-firefox/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 11:36:52 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[3.6.6]]></category>
		<category><![CDATA[45 seconds]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[flash debug player]]></category>
		<category><![CDATA[freeze]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[plugin-container]]></category>
		<category><![CDATA[plugin-container.exe]]></category>
		<category><![CDATA[popup]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=335</guid>
		<description><![CDATA[After I updated Firefox past version 3.6.6 I started noticing some weird behavior when Flash Debug Player threw an error. Sometimes I would not be able to dismiss the error popup. Instead, it would freeze for almost a minute and then crash the flash plugin. It was nice that Firefox itself didn&#8217;t crash, but I [...]]]></description>
			<content:encoded><![CDATA[<p>After I updated Firefox past version 3.6.6 I started noticing some weird behavior when Flash Debug Player threw an error. Sometimes I would not be able to dismiss the error popup. Instead, it would freeze for almost a minute and then crash the flash plugin. It was nice that Firefox itself didn&#8217;t crash, but I found it quite irritating always having to kill the plugin-container.exe process to skip having to wait the 45 seconds every single time I visited a website with poorly written flash ads (majority of websites!).</p>
<p>Then I read <a href="http://nwebb.co.uk/blog/?p=538">nwebb&#8217;s blog post</a> about a fix to this problem. To quote the blog post:</p>
<div style="color: #555555; border: 1px solid; border-color: #999999; padding: 5px;">You need to go in to the Firefox config settings (type about:config in to the location bar) and search for dom.ipc.plugins.enabled.npswf32.dll – double click that to set it to false. You may also need to set dom.ipc.plugins.timeoutSecs to -1. Now restart your browser and you should once again be able to debug your apps and dismiss the warnings as you used to do in the good old days. Ahhhhh bliss.</div>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2010/08/flash-debug-player-crashing-firefox/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Global error handling with Flash Player 10.1</title>
		<link>http://flassari.is/2010/06/global-error-handling-with-flash-player-10-1/</link>
		<comments>http://flassari.is/2010/06/global-error-handling-with-flash-player-10-1/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 12:25:44 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[10.1]]></category>
		<category><![CDATA[4.1]]></category>
		<category><![CDATA[as]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[global]]></category>
		<category><![CDATA[handler]]></category>
		<category><![CDATA[handling]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[uncaught]]></category>
		<category><![CDATA[uncaughtError]]></category>
		<category><![CDATA[uncaughterrorhandler]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=303</guid>
		<description><![CDATA[Since the official release of Flash Player 10.1 is out, now might be a good time to start implementing the global error handler.

When this is written, flash builder 4 doesn't have a native way that lets you use it, so we have to do a little mix.
The global error handler works by adding an event to the uncaughtErrorEvents property of the loaderInfo of the application.
There are currently two methods of getting it to work [...] ]]></description>
			<content:encoded><![CDATA[<p>Since the official release of Flash Player 10.1 is out, now might be a good time to start implementing the global error handler.</p>
<p>When this is written, flash builder 4 doesn&#8217;t have a native way that lets you use it, so we have to do a little mix.<strong> (Update: The update is out.)</strong><br />
The global error handler works by adding an event to the uncaughtErrorEvents property of the loaderInfo of the application.<br />
There are currently two methods of getting it to work.</p>
<h3>Method 1 - The backwards compatible one:</h3>
<p>Here the code doesn&#8217;t crash in flash player 9/10, but the error handling will only work in 10.1.</p>
<pre class="brush: as3">if(loaderInfo.hasOwnProperty("uncaughtErrorEvents")){
	IEventDispatcher(loaderInfo["uncaughtErrorEvents"]) .addEventListener("uncaughtError", uncaughtErrorHandler);
}</pre>
<pre class="brush: as3">private function uncaughtErrorHandler(e:Event):void {
	trace("Global error:", e);
}</pre>
<h3>Method 2 - The type safe one:</h3>
<p>Get the <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4">Flex 4.1 SDK</a> if you haven&#8217;t already and choose that one as your project&#8217;s SDK.</p>
<p>Now you can use the new global error handling like it was meant to be used:</p>
<pre class="brush: as3">import flash.events.UncaughtErrorEvent;

loaderInfo.uncaughtErrorEvents.addEventListener( UncaughtErrorEvent.UNCAUGHT_ERROR, uncaughtErrorHandler);

private function uncaughtErrorHandler( e:UncaughtErrorEvent):void {
	trace("Global error:", e);
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2010/06/global-error-handling-with-flash-player-10-1/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Flv and f4v files not found on IIS</title>
		<link>http://flassari.is/2010/05/flv-and-f4v-files-not-found-on-iis/</link>
		<comments>http://flassari.is/2010/05/flv-and-f4v-files-not-found-on-iis/#comments</comments>
		<pubDate>Wed, 05 May 2010 11:51:39 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[f4v]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[MIME]]></category>
		<category><![CDATA[not found]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=291</guid>
		<description><![CDATA[If your IIS server throws a "404 not found" page every time you try to fetch a flash video file (flv or f4v), your server might be missing the MIME type declaration.
In the Internet Information Services Manager [...] ]]></description>
			<content:encoded><![CDATA[<p>If your IIS server throws a &#8220;404 not found&#8221; page every time you try to fetch a flash video file (flv or f4v), your server might be missing the MIME type declaration.<br />
In the Internet Information Services Manager, right click the local computer server and select Properties, open MIME types, click New and enter the following for flv <a href="http://kb2.adobe.com/cps/194/tn_19439.html">(technote)</a>:</p>
<pre>Associated Extension box: .FLV
MIME Type box: flv-application/octet-stream</pre>
<p>and for f4v <a href="http://kb2.adobe.com/cps/402/kb402865.html">(technote)</a>:</p>
<pre>Associated Extension box: .F4V
MIME Type box: video/mp4</pre>
<p>Digging around the internet, I&#8217;ve found people reporting these MIME types working too;<br />
video/x-flv for .flv files, and<br />
video/f4v for .f4v files.</p>
<p>Be advised that you may have to restart IIS for the changes to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2010/05/flv-and-f4v-files-not-found-on-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash focus border in Firefox</title>
		<link>http://flassari.is/2010/03/flash-focus-border-in-firefox/</link>
		<comments>http://flassari.is/2010/03/flash-focus-border-in-firefox/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 23:44:23 +0000</pubDate>
		<dc:creator>Flassari</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[1 pixel]]></category>
		<category><![CDATA[active]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[dotted]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[flashcomguru]]></category>
		<category><![CDATA[focus]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://flassari.is/?p=280</guid>
		<description><![CDATA[I've noticed recently that Firefox has started showing a 1px dotted border around flash objects when I click on them. It didn't bother me enough to look for a solution, but today the solution found me [...] ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve noticed recently that Firefox has started showing a 1px dotted border around flash objects when I click on them. It didn&#8217;t bother me enough to look for a solution, but today the solution found me.<br />
In my rss reader a <a href="http://www.flashcomguru.com/index.cfm/2010/3/22/prevent-swf-border-firefox">blog post</a> from <a href="http://www.flashcomguru.com">FlashComGuru</a> pops up, showing how to get rid of this annoyance, pasted here for your convenience:</p>
<p><i>Simply add this to your page&#8217;s stylesheet:</i></p>
<pre class="brush: html">
a:focus, object:focus { outline: none; -moz-outline-style: none; }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://flassari.is/2010/03/flash-focus-border-in-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

