<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.2" -->
<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/"
	>

<channel>
	<title>The Nordhagen</title>
	<link>http://www.oyvindnordhagen.com/blog</link>
	<description>Øyvind Nordhagen's blog</description>
	<pubDate>Wed, 30 Apr 2008 11:26:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
	<language>en</language>
			<item>
		<title>Loaded SWF doesn&#8217;t run its code - no errors? WFT??</title>
		<link>http://www.oyvindnordhagen.com/blog/2008/04/30/loaded-swf-doesnt-run-its-code-no-errors-wft/</link>
		<comments>http://www.oyvindnordhagen.com/blog/2008/04/30/loaded-swf-doesnt-run-its-code-no-errors-wft/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 11:25:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flashdev]]></category>

		<category><![CDATA[ApplicationDomain]]></category>

		<category><![CDATA[as3]]></category>

		<category><![CDATA[code not running]]></category>

		<category><![CDATA[document class]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[host]]></category>

		<category><![CDATA[loaded swf]]></category>

		<category><![CDATA[no errors]]></category>

		<guid isPermaLink="false">http://www.oyvindnordhagen.com/blog/2008/04/30/loaded-swf-doesnt-run-its-code-no-errors-wft/</guid>
		<description><![CDATA[
The other day I was writing the code for a simple animated movie. I decided to use a host flash to get the user started quickly and then create a separate SWF file for each scene in the movie. The host flash would then preload the next scene while the current one was playing. MovieHost.as [...]
<script type="text/javascript">
SHARETHIS.addEntry(
	{
	title: "Loaded SWF doesn&#8217;t run its code - no errors? WFT??",
	url: "http://www.oyvindnordhagen.com/blog/2008/04/30/loaded-swf-doesnt-run-its-code-no-errors-wft/"
	}
	
	
);
</script>
	]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/04/wtf.jpg" alt="WTF" /></p>
<p>The other day I was writing the code for a simple animated movie. I decided to use a host flash to get the user started quickly and then create a separate SWF file for each scene in the movie. The host flash would then preload the next scene while the current one was playing. MovieHost.as would be the document class for the host movie and Scene.as document class for all the scenes. Simple right? Budget: 6-7 hours including the stop frame animations&#8230;</p>
<p>Well, not quite so. I created all the animations in all the swiffs, set up the hos flash to load them in, pressed command+enter to verify my effectiveness. The host flash fires up and loads the first scene but the scene&#8217;s code does not seem to run at all. And no error messages? After all this is AS3 - WTF??</p>
<p>I won&#8217;t bore you with the details of all my testing, but it went to the point where I started to research the use of explicit application domains and such. After some hours I found the reason, and here it it:</p>
<p>From the Flash documentation on the ApplicationDomain class:</p>
<blockquote><p><em>&#8220;You cannot override a loaded class definition with a newer definition.&#8221;</em></p></blockquote>
<p>This says it all really. Close to the top of my HostMovie.as class (where I hadn&#8217;t been for a while) I found this line:</p>
<blockquote><p><font color="#ff0000">private</font> <font color="#339966">var</font> _currentScene:<font color="#ff0000">Scene</font>;</p></blockquote>
<p>Even though this variable was not being used in any way, the host flash still had a compiled version of the class Scene.as when the scene swiffs were being loaded. I f you look at the comment from the documentation again you realize that of course no code from the loaded swf could run, it&#8217;s document class had been discarded in favor of the one allready existing in the host flash.</p>
<p>I removed the unused property definition from HostMovie.as and everything from there on went as planned.</p>
<p><a href="http://sharethis.com/item?&wp=2.3.2&amp;publisher=a19f1ec1-88de-43e3-8742-f467d0719210&amp;title=Loaded+SWF+doesn%26%238217%3Bt+run+its+code+-+no+errors%3F+WFT%3F%3F&amp;url=http%3A%2F%2Fwww.oyvindnordhagen.com%2Fblog%2F2008%2F04%2F30%2Floaded-swf-doesnt-run-its-code-no-errors-wft%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oyvindnordhagen.com/blog/2008/04/30/loaded-swf-doesnt-run-its-code-no-errors-wft/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash On The Beach wasn&#8217;t sold out after all</title>
		<link>http://www.oyvindnordhagen.com/blog/2008/04/24/flash-on-the-beach-wasnt-sold-out-after-all/</link>
		<comments>http://www.oyvindnordhagen.com/blog/2008/04/24/flash-on-the-beach-wasnt-sold-out-after-all/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 06:49:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flashdev]]></category>

		<guid isPermaLink="false">http://www.oyvindnordhagen.com/blog/2008/04/24/flash-on-the-beach-wasnt-sold-out-after-all/</guid>
		<description><![CDATA[Paulo and Tink were right after all; FOTB wasn&#8217;t sold out. The tickets page was just not updated from last year and I&#8217;ve got me a ticket. Yeah!

<script type="text/javascript">
SHARETHIS.addEntry(
	{
	title: "Flash On The Beach wasn&#8217;t sold out after all",
	url: "http://www.oyvindnordhagen.com/blog/2008/04/24/flash-on-the-beach-wasnt-sold-out-after-all/"
	}
	
	
);
</script>
	]]></description>
			<content:encoded><![CDATA[<p>Paulo and Tink were right after all; FOTB wasn&#8217;t sold out. The tickets page was just not updated from last year and I&#8217;ve got me a ticket. Yeah!</p>
<p><a href="http://sharethis.com/item?&wp=2.3.2&amp;publisher=a19f1ec1-88de-43e3-8742-f467d0719210&amp;title=Flash+On+The+Beach+wasn%26%238217%3Bt+sold+out+after+all&amp;url=http%3A%2F%2Fwww.oyvindnordhagen.com%2Fblog%2F2008%2F04%2F24%2Fflash-on-the-beach-wasnt-sold-out-after-all%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oyvindnordhagen.com/blog/2008/04/24/flash-on-the-beach-wasnt-sold-out-after-all/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash On The Beach already sold out</title>
		<link>http://www.oyvindnordhagen.com/blog/2008/04/03/flash-on-the-beach-already-sold-out/</link>
		<comments>http://www.oyvindnordhagen.com/blog/2008/04/03/flash-on-the-beach-already-sold-out/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 09:49:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General thoughts]]></category>

		<category><![CDATA[buy]]></category>

		<category><![CDATA[buying]]></category>

		<category><![CDATA[desperate]]></category>

		<category><![CDATA[desperately need two tickets]]></category>

		<category><![CDATA[Flash On The Beach]]></category>

		<category><![CDATA[FOTB]]></category>

		<category><![CDATA[help]]></category>

		<category><![CDATA[please]]></category>

		<category><![CDATA[sold out]]></category>

		<category><![CDATA[spare]]></category>

		<category><![CDATA[tickets]]></category>

		<guid isPermaLink="false">http://www.oyvindnordhagen.com/blog/2008/04/03/flash-on-the-beach-already-sold-out/</guid>
		<description><![CDATA[
I checked the FOTB site about a week ago and it seems I might have misunderstood the message there about ticket sales not being open. Or maybe tickets were in fact not yet for sale at that point. Either way, those tickets must have been ripped away pretty fast and here I am without one. [...]
<script type="text/javascript">
SHARETHIS.addEntry(
	{
	title: "Flash On The Beach already sold out",
	url: "http://www.oyvindnordhagen.com/blog/2008/04/03/flash-on-the-beach-already-sold-out/"
	}
	
	
);
</script>
	]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/04/fotb_blog.jpg" alt="fotb_blog.jpg" /></p>
<p>I checked the FOTB site about a week ago and it seems I might have misunderstood the message there about ticket sales not being open. Or maybe tickets were in fact not yet for sale at that point. Either way, those tickets must have been ripped away pretty fast and here I am without one. Actually I&#8217;m two tickets short because there are two of us who wanted to be there from my agency.</p>
<p>If anyone has a couple of tickets to spare please let me know because I&#8217;m buying! (as you can see from the tags to this post&#8230;)</p>
<p><a href="http://sharethis.com/item?&wp=2.3.2&amp;publisher=a19f1ec1-88de-43e3-8742-f467d0719210&amp;title=Flash+On+The+Beach+already+sold+out&amp;url=http%3A%2F%2Fwww.oyvindnordhagen.com%2Fblog%2F2008%2F04%2F03%2Fflash-on-the-beach-already-sold-out%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oyvindnordhagen.com/blog/2008/04/03/flash-on-the-beach-already-sold-out/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Winter rebound</title>
		<link>http://www.oyvindnordhagen.com/blog/2008/03/25/winter-rebound/</link>
		<comments>http://www.oyvindnordhagen.com/blog/2008/03/25/winter-rebound/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 12:08:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General thoughts]]></category>

		<guid isPermaLink="false">http://www.oyvindnordhagen.com/blog/2008/03/25/winter-rebound/</guid>
		<description><![CDATA[Just when all was going so well winter draws one hell of a dying breath and I get a cold. So I&#8217;m stuck in an empty house watching it snow outside with my nose running so bad I keep leaving slime tracks all over the house like a garden snail. Lucky for me there is [...]
<script type="text/javascript">
SHARETHIS.addEntry(
	{
	title: "Winter rebound",
	url: "http://www.oyvindnordhagen.com/blog/2008/03/25/winter-rebound/"
	}
	
	
);
</script>
	]]></description>
			<content:encoded><![CDATA[<p>Just when all was going so well winter draws one hell of a dying breath and I get a cold. So I&#8217;m stuck in an empty house watching it snow outside with my nose running so bad I keep leaving slime tracks all over the house like a garden snail. Lucky for me there is Playstation <img src='http://www.oyvindnordhagen.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/03/_dsc0697.jpg" alt="_dsc0697.jpg" /></p>
<p><a href="http://sharethis.com/item?&wp=2.3.2&amp;publisher=a19f1ec1-88de-43e3-8742-f467d0719210&amp;title=Winter+rebound&amp;url=http%3A%2F%2Fwww.oyvindnordhagen.com%2Fblog%2F2008%2F03%2F25%2Fwinter-rebound%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oyvindnordhagen.com/blog/2008/03/25/winter-rebound/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Happy St. Patric&#8217;s!</title>
		<link>http://www.oyvindnordhagen.com/blog/2008/03/17/happy-st-patrics/</link>
		<comments>http://www.oyvindnordhagen.com/blog/2008/03/17/happy-st-patrics/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 14:43:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General thoughts]]></category>

		<guid isPermaLink="false">http://www.oyvindnordhagen.com/blog/2008/03/17/happy-st-patrics/</guid>
		<description><![CDATA[ 
Grab a beer, It&#8217;s St. Patric&#8217;s Day. In the words of House of Pain: Put on your shit kickers and kick some shit!
If anyone&#8217;s wondering why I&#8217;ve been a slow poster  lately, it&#8217;s because my basement home cinema is looking like this:

I&#8217;ll be back when that is done with 

<script type="text/javascript">
SHARETHIS.addEntry(
	{
	title: "Happy St. Patric&#8217;s!",
	url: "http://www.oyvindnordhagen.com/blog/2008/03/17/happy-st-patrics/"
	}
	
	
);
</script>
	]]></description>
			<content:encoded><![CDATA[<p> <img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/03/shamrocks.jpg" alt="shamrocks.jpg" /></p>
<p>Grab a beer, It&#8217;s St. Patric&#8217;s Day. In the words of House of Pain: Put on your shit kickers and kick some shit!</p>
<p>If anyone&#8217;s wondering why I&#8217;ve been a slow poster  lately, it&#8217;s because my basement home cinema is looking like this:</p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/03/_inc0625.jpg" alt="_inc0625.jpg" /></p>
<p>I&#8217;ll be back when that is done with <img src='http://www.oyvindnordhagen.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
<p><a href="http://sharethis.com/item?&wp=2.3.2&amp;publisher=a19f1ec1-88de-43e3-8742-f467d0719210&amp;title=Happy+St.+Patric%26%238217%3Bs%21&amp;url=http%3A%2F%2Fwww.oyvindnordhagen.com%2Fblog%2F2008%2F03%2F17%2Fhappy-st-patrics%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oyvindnordhagen.com/blog/2008/03/17/happy-st-patrics/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MasterPhoto.no launched!</title>
		<link>http://www.oyvindnordhagen.com/blog/2008/02/06/masterphotono-launched/</link>
		<comments>http://www.oyvindnordhagen.com/blog/2008/02/06/masterphotono-launched/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 23:42:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flashdev]]></category>

		<category><![CDATA[cms]]></category>

		<category><![CDATA[dynamic]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[Masterphoto]]></category>

		<category><![CDATA[web site]]></category>

		<guid isPermaLink="false">http://www.oyvindnordhagen.com/blog/2008/02/06/masterphotono-launched/</guid>
		<description><![CDATA[
A really interesting project I&#8217;ve been doing at work is finally live after a little over a month in design and development. I am quite pleased with the result as it is a fully dynamic (with content management system on the way) all Flash, language extendable solution.
The language menu has had to be hidden from [...]
<script type="text/javascript">
SHARETHIS.addEntry(
	{
	title: "MasterPhoto.no launched!",
	url: "http://www.oyvindnordhagen.com/blog/2008/02/06/masterphotono-launched/"
	}
	
	
);
</script>
	]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/02/masterphoto1.jpg" rel="lightbox[63]" title="masterphoto1.jpg"><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/02/masterphoto1.thumbnail.jpg" alt="masterphoto1.jpg" /></a><a href="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/02/masterphoto3.jpg" rel="lightbox[63]" title="masterphoto3.jpg"><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/02/masterphoto3.thumbnail.jpg" alt="masterphoto3.jpg" /></a><a href="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/02/masterphoto4.jpg" rel="lightbox[63]" title="masterphoto4.jpg"><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/02/masterphoto4.thumbnail.jpg" alt="masterphoto4.jpg" /></a></p>
<p>A really interesting project I&#8217;ve been doing at work is finally live after a little over a month in design and development. I am quite pleased with the result as it is a fully dynamic (with content management system on the way) all Flash, language extendable solution.</p>
<p>The language menu has had to be hidden from view for now. That&#8217;s because the site hasn&#8217;t been translated yet, but after the first one is in I will be enabling the language selection. From there, extending the site to other languages is a matter of translating and publishing through the CMS with no touching of neither FLA-files or XML needed.</p>
<p>A tricky part of this project was getting the site swf, which filles the entire browser, to scale to fit the browser window, but not so that it would crop the site without displaying scrollbars on smaller screens. The solution was a little javascript that I <a href="http://www.oyvindnordhagen.com/blog/2008/01/08/flash-javascript-resizer-fill-the-browser-window-without-cropping/">published in an earlier post.</a></p>
<p>MasterPhoto captures stills and video by using model helicopters to reach heights and angles unmatched withother types of equipment. The results they can achieve is really stunning. Check out the site!</p>
<p><a href="http://www.masterphoto.no" target="_blank">www.masterphoto.no</a></p>
<p><a href="http://sharethis.com/item?&wp=2.3.2&amp;publisher=a19f1ec1-88de-43e3-8742-f467d0719210&amp;title=MasterPhoto.no+launched%21&amp;url=http%3A%2F%2Fwww.oyvindnordhagen.com%2Fblog%2F2008%2F02%2F06%2Fmasterphotono-launched%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oyvindnordhagen.com/blog/2008/02/06/masterphotono-launched/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Microsoft SilverLight: Light &#8216;em up!</title>
		<link>http://www.oyvindnordhagen.com/blog/2008/01/28/microsoft-silverlight-light-em-up/</link>
		<comments>http://www.oyvindnordhagen.com/blog/2008/01/28/microsoft-silverlight-light-em-up/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 22:12:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flashdev]]></category>

		<category><![CDATA[Flash competitor]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[SilverLight]]></category>

		<guid isPermaLink="false">http://www.oyvindnordhagen.com/blog/2008/01/28/microsoft-silverlight-light-em-up/</guid>
		<description><![CDATA[
I just browsed through Microsoft&#8217;s download pages to find a .NET Framework install needed for FlashDevelop when I came across this page asking me if I would like to try their shiny new Silverlight-boosted download area. Of course I was curious, so I happily OK&#8217;ed the installation link for the Silverlight and waited for my [...]
<script type="text/javascript">
SHARETHIS.addEntry(
	{
	title: "Microsoft SilverLight: Light &#8216;em up!",
	url: "http://www.oyvindnordhagen.com/blog/2008/01/28/microsoft-silverlight-light-em-up/"
	}
	
	
);
</script>
	]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/bilde-5_blog.jpg" alt="bilde-5_blog.jpg" /></p>
<p>I just browsed through Microsoft&#8217;s download pages to find a <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&amp;displaylang=en" target="_blank">.NET Framework</a> install needed for <a href="http://www.flashdevelop.org/">FlashDevelop</a> when I came across <a href="http://www.microsoft.com/beta/downloads/About.aspx?version=0&amp;frequency=0.5&amp;weight=100&amp;location=http%3A//www.microsoft.com/downloads/details.aspx%3Ffamilyid%3Da8f5654f-088e-40b2-bbdb-a83353618b38%26displaylang%3Den&amp;referrer=http%3A//www.flashdevelop.org/community/viewtopic.php%3Ft%3D2494%26highlight%3Dmicrosoft+net+runtime&amp;otherCookies=&amp;otherVariables=&amp;browserWidth=1322&amp;browserHeight=673&amp;projectId=3519mt&amp;fromSR=1&amp;site=368">this page</a> asking me if I would like to try their shiny new Silverlight-boosted download area. Of course I was curious, so I happily OK&#8217;ed the installation link for the Silverlight and waited for my first encounter with MS&#8217; answer to Flash.</p>
<p>Now, why in the world MS would like to be a latecomer in this game in the first place is beyond me, but why even bother to turn up at the table with anything less than at least a decent hand. First, *MS* Internet Explorer crashed upon completion of the installer. When I fired it up again and went back to their much proclaimed download site, the first thing I got was this pucker:</p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/bilde-2.jpg" alt="bilde-2.jpg" /></p>
<p>Then, after dismissing that dialog I proceeded to click the link that said &#8220;Downloads and Trials&#8221;, to which the Silverlight application responded with this blank screen:</p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/silverlightblank1.jpg" alt="silverlightblank1.jpg" /></p>
<p>After a few clicks here and there I managed to land at the correct place to browse for the .NET Framework 2.0 download, but browsing was sluggish and sometimes irresponsive.Come on MS - this is supposed to be a showcase of your great Flash competitor, nothing here is new, nothing here is better and there&#8217;s a long way between this and to <em>improve the Download Center experience and make it easier to discover and download Microsoft software</em> a you put it. This is kind of like going up to Ronnie James Dio on stage and saying &#8220;Look, I&#8217;ve made this song called Holy Diver, and now I want your fame&#8221;.</p>
<p>Needless to say Silverlight ain&#8217;t scaring me yet.</p>
<p><a href="http://sharethis.com/item?&wp=2.3.2&amp;publisher=a19f1ec1-88de-43e3-8742-f467d0719210&amp;title=Microsoft+SilverLight%3A+Light+%26%238216%3Bem+up%21&amp;url=http%3A%2F%2Fwww.oyvindnordhagen.com%2Fblog%2F2008%2F01%2F28%2Fmicrosoft-silverlight-light-em-up%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oyvindnordhagen.com/blog/2008/01/28/microsoft-silverlight-light-em-up/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash JavaScript Resizer - fill the browser window without cropping</title>
		<link>http://www.oyvindnordhagen.com/blog/2008/01/08/flash-javascript-resizer-fill-the-browser-window-without-cropping/</link>
		<comments>http://www.oyvindnordhagen.com/blog/2008/01/08/flash-javascript-resizer-fill-the-browser-window-without-cropping/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 21:34:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flashdev]]></category>

		<category><![CDATA[]]></category>

		<category><![CDATA[browser]]></category>

		<category><![CDATA[download]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[no cropping]]></category>

		<category><![CDATA[resize]]></category>

		<category><![CDATA[scrollbars]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://www.oyvindnordhagen.com/blog/2008/01/08/flash-javascript-resizer-fill-the-browser-window-without-cropping/</guid>
		<description><![CDATA[Creating Flash content that fills the entire browser window right up to the chrome is nothing new. Normally it is accomplished by setting the swf&#8217;s width and height to 100% in the object and embed tags and controlling how different elements respond to resizing with ActionScript within the Flash Movie. But in a recent project [...]
<script type="text/javascript">
SHARETHIS.addEntry(
	{
	title: "Flash JavaScript Resizer - fill the browser window without cropping",
	url: "http://www.oyvindnordhagen.com/blog/2008/01/08/flash-javascript-resizer-fill-the-browser-window-without-cropping/"
	}
	
	
);
</script>
	]]></description>
			<content:encoded><![CDATA[<p>Creating Flash content that fills the entire browser window right up to the chrome is nothing new. Normally it is accomplished by setting the swf&#8217;s width and height to 100% in the object and embed tags and controlling how different elements respond to resizing with ActionScript within the Flash Movie. But in a recent project I needed to ensure that the swf did not scale below a certain size so that the browser is forced to display it&#8217;s scrollbars. This is because while the stage of the movie scales the main content is not scaled, only centered. That makes the browser crop your swf, effectively rendering the use of small(er) screen resolutions impossible.</p>
<p>See for yourself: <a href="http://www.oyvindnordhagen.com/flashdev/resizeexample/ResizeExample_bad.html" target="_blank">Resize Example</a></p>
<p>Because of this I had to write a small JavaScript to gain back some control over how the move resized. Here you go, you can either download only the JS-file or the entire zipped example above.</p>
<p><a href="http://www.oyvindnordhagen.com/flashdev/resizeexample/flashresizer.js" target="_blank" title="flashresizer.js"><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/js.gif" rel="lightbox[50]" alt="flashresizer.js" /> flashresizer.js</a></p>
<p><a href="http://www.oyvindnordhagen.com/flashdev/resizeexample/ResizeExample.zip" title="ResizeExample.zip"><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/zip.gif" rel="lightbox[50]" alt="ResizeExample.zip" /> Entire zipped example</a></p>
<p>Enjoy!</p>
<p><a href="http://sharethis.com/item?&wp=2.3.2&amp;publisher=a19f1ec1-88de-43e3-8742-f467d0719210&amp;title=Flash+JavaScript+Resizer+-+fill+the+browser+window+without+cropping&amp;url=http%3A%2F%2Fwww.oyvindnordhagen.com%2Fblog%2F2008%2F01%2F08%2Fflash-javascript-resizer-fill-the-browser-window-without-cropping%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oyvindnordhagen.com/blog/2008/01/08/flash-javascript-resizer-fill-the-browser-window-without-cropping/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Call Of Duty 4 (PS3) port opening (forwarding) for AirPort</title>
		<link>http://www.oyvindnordhagen.com/blog/2008/01/04/call-of-duty-4-ps3-port-opening-forwarding-for-airport/</link>
		<comments>http://www.oyvindnordhagen.com/blog/2008/01/04/call-of-duty-4-ps3-port-opening-forwarding-for-airport/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 21:53:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<category><![CDATA[Spread The Word]]></category>

		<category><![CDATA[AirPort]]></category>

		<category><![CDATA[Call Of Duty]]></category>

		<category><![CDATA[COD]]></category>

		<category><![CDATA[COD4]]></category>

		<category><![CDATA[DHCP client id]]></category>

		<category><![CDATA[forwarding]]></category>

		<category><![CDATA[open]]></category>

		<category><![CDATA[PlayStation]]></category>

		<category><![CDATA[port]]></category>

		<category><![CDATA[PS3]]></category>

		<guid isPermaLink="false">http://www.oyvindnordhagen.com/blog/2008/01/04/call-of-duty-4-ps3-port-opening-forwarding-for-airport/</guid>
		<description><![CDATA[If you play Call Of Duty 4 on PlayStation 3 (like me), chances are you&#8217;ve spent some time waiting to be connected to an online game. Infinity Ward who created the game blame your internet router for not having the correct ports opened. While this post says that you will need to open ports 3074 [...]
<script type="text/javascript">
SHARETHIS.addEntry(
	{
	title: "Call Of Duty 4 (PS3) port opening (forwarding) for AirPort",
	url: "http://www.oyvindnordhagen.com/blog/2008/01/04/call-of-duty-4-ps3-port-opening-forwarding-for-airport/"
	}
	
	
);
</script>
	]]></description>
			<content:encoded><![CDATA[<p>If you play Call Of Duty 4 on PlayStation 3 (like me), chances are you&#8217;ve spent some time waiting to be connected to an online game. Infinity Ward who created the game blame your internet router for not having the correct ports opened. While <a href="http://www.infinityward.com/community/forum/index.php/topic,3038.0.html" target="_blank">this post</a> says that you will need to open ports 3074 and 3075 on you router, maybe you don&#8217;t even know what a port is, not to mention how to open them?</p>
<p>To be honest I don&#8217;t know too much about this stuff either, but this I do know: the term &#8220;opening a port&#8221; is somewhat misleading. It took me some time to discover that it&#8217;s actually the same as &#8220;forwarding a port&#8221; or &#8220;port forwarding&#8221; as it is called in the AirPort Admin Utility for Mac. You cannot just open a port, you have to tell the router which computer on your network should receive network traffic directed to that port. That computer is identified by an IP-address, but that means entering that IP address manually, and most home networks are configured handle this automatically (by means of DHCP) and that&#8217;s likely to be the most practical solution anyway.</p>
<p>How do we solve this? Enter DHCP Client ID&#8230; ok, an introduction should probably end with a far sexier name than &#8220;DCHP Client ID&#8221;, but here it goes, watch:</p>
<p>These screenshots are in Norwegian, but the layout is the same, and I will attempt to translate.</p>
<p><strong>Step 1: Open AirPort Amin Utility and select &#8220;Internet&#8221; and &#8220;DHCP&#8221;</strong></p>
<p>NOTE: This requires that your AriPort is set to share a public IP address. That setting is located in the first tab under &#8220;Internet&#8221;.</p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/bilde-1.jpg" alt="bilde-1.jpg" /></p>
<p>At the bottom you will se something called DHCP reservations, and the list is likely to be empty, unlike mine. Below the list a +-button. Click that and this sheet appears:</p>
<p><strong>Step 2: Enter a name and method for the new reserved IP address.</strong></p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/bilde-2.png" alt="bilde-2.png" /></p>
<p>I chose to name it PS3, bu that&#8217;s not important. What is is that you specify DHCP Client ID as the method and click continue.</p>
<p><strong>Step 3: Enter a client ID and the IP address you wish</strong></p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/bilde-3.jpg" alt="bilde-3.jpg" /></p>
<p>The Client ID is important because you have to enter the same on your PlayStation. May I suggest &#8220;PS3&#8243; for that. Next you enter an IP address. The three first numbers have been entered for you, and you have to select a number between 2 and 256. I chose 94, and if that&#8217;s not manually assigned to any other computer on your network it will work for you as well. Click &#8220;Done&#8221;.</p>
<p><strong>Step 4: opening/forwarding the ports</strong></p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/bilde-4.jpg" alt="bilde-4.jpg" /></p>
<p>Select &#8220;Advanced&#8221; and &#8220;Port Forwarding&#8221; and you will see something like this. Again, click the +-button below the list and this sheet appears:</p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/bilde-5.jpg" alt="bilde-5.jpg" /></p>
<p>Fill out the fields exactly like the screenshot, or if you chose a different IP address to be reserved for your PS3 in step 3, enter that address instead. Click &#8220;Continue&#8221;.</p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2008/01/bilde-6.jpg" alt="bilde-6.jpg" /></p>
<p>Here you select a name for the configuration. Again, this has no technical meaning, it&#8217;s just a description so I entered &#8220;COD4&#8243; as an abbreviation for &#8220;Call Of Duty 4&#8243;. Pretend like the rest of the sheet isn&#8217;t there and click &#8220;Done&#8221;.</p>
<p><strong>Step 5: Restart the AirPort</strong></p>
<p>Restart your AirPort by clicking the &#8220;Apply&#8221;/&#8221;Update&#8221;/&#8221;Restart&#8221; (don&#8217;t know it&#8217;s actual name in English) in AirPort Admin Utility.</p>
<p><strong>Step 6: Configure your PlayStation network settings</strong></p>
<p>You can configure the network settings for your PS3 almost like you already have. You need to choose manual setup, but you can still use automatic detection for all settings except you DHCP Client ID, which, obviously, has to be whatever you chose in step 3. Remember my suggestion was &#8220;PS3&#8243;. After that Bob&#8217;s your father&#8217;s brother!</p>
<p><a href="http://sharethis.com/item?&wp=2.3.2&amp;publisher=a19f1ec1-88de-43e3-8742-f467d0719210&amp;title=Call+Of+Duty+4+%28PS3%29+port+opening+%28forwarding%29+for+AirPort&amp;url=http%3A%2F%2Fwww.oyvindnordhagen.com%2Fblog%2F2008%2F01%2F04%2Fcall-of-duty-4-ps3-port-opening-forwarding-for-airport%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oyvindnordhagen.com/blog/2008/01/04/call-of-duty-4-ps3-port-opening-forwarding-for-airport/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Happy new year from Aron!</title>
		<link>http://www.oyvindnordhagen.com/blog/2007/12/30/happy-new-year-from-aron/</link>
		<comments>http://www.oyvindnordhagen.com/blog/2007/12/30/happy-new-year-from-aron/#comments</comments>
		<pubDate>Sun, 30 Dec 2007 22:00:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General thoughts]]></category>

		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.oyvindnordhagen.com/blog/2007/12/30/happy-new-year-from-aron/</guid>
		<description><![CDATA[My son wanted so desperately to wish you all a happy new year, so here he is, posing with my hat and all  
Aron turned 6 months on december 27. He&#8217;s full of smiles and really interesting language interpretations. He&#8217;s just about to begin crawling around. He also wishes to thank you all for [...]
<script type="text/javascript">
SHARETHIS.addEntry(
	{
	title: "Happy new year from Aron!",
	url: "http://www.oyvindnordhagen.com/blog/2007/12/30/happy-new-year-from-aron/"
	}
	
	
);
</script>
	]]></description>
			<content:encoded><![CDATA[<p>My son wanted so desperately to wish you all a happy new year, so here he is, posing with my hat and all <img src='http://www.oyvindnordhagen.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Aron turned 6 months on december 27. He&#8217;s full of smiles and really interesting language interpretations. He&#8217;s just about to begin crawling around. He also wishes to thank you all for the humongous pile of presents he got for Cristmas.</p>
<p>Most of all he&#8217;s the cutest, loveliest and happiest little boy alive!</p>
<p><img src="http://www.oyvindnordhagen.com/blog/wp-content/uploads/2007/12/aroncaps.jpg" alt="aroncaps.jpg" /></p>
<p><a href="http://sharethis.com/item?&wp=2.3.2&amp;publisher=a19f1ec1-88de-43e3-8742-f467d0719210&amp;title=Happy+new+year+from+Aron%21&amp;url=http%3A%2F%2Fwww.oyvindnordhagen.com%2Fblog%2F2007%2F12%2F30%2Fhappy-new-year-from-aron%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.oyvindnordhagen.com/blog/2007/12/30/happy-new-year-from-aron/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
