<?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"
	>

<channel>
	<title>cBlog</title>
	<atom:link href="http://www.christiankragh.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.christiankragh.com/blog</link>
	<description>Blog of Flash Designer / Developer Christian Kragh</description>
	<pubDate>Mon, 06 Sep 2010 15:45:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Music loops by ChristianKragh</title>
		<link>http://www.christiankragh.com/blog/?p=50</link>
		<comments>http://www.christiankragh.com/blog/?p=50#comments</comments>
		<pubDate>Mon, 16 Aug 2010 22:47:43 +0000</pubDate>
		<dc:creator>Christian Kragh</dc:creator>
		
		<category><![CDATA[Freelance]]></category>

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

		<guid isPermaLink="false">http://www.christiankragh.com/blog/?p=50</guid>
		<description><![CDATA[Once in a while I create music loops, here is a player featuring my newest files on AudioJungle that you can purchase for use on your website or anything else!


]]></description>
			<content:encoded><![CDATA[<p>Once in a while I create music loops, here is a player featuring my newest files on AudioJungle that you can purchase for use on your website or anything else!</p>
<p style="text-align: center;"><object width="420" height="420"><param name="movie" value="http://envato.com/personal_player/aj_preview.swf"><param name="allowscriptaccess" value="always"><param name="wmode" value="transparent"><param name="FlashVars" value="api=http://marketplace.envato.com/api/edge/new-files-from-user:ChristianKragh,audiojungle.xml&amp;autoplay=0&amp;refid=ChristianKragh&amp;txtColor=0x6B9B2B&amp;itemLimit=100"><embed src="http://envato.com/personal_player/aj_preview.swf" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="transparent" flashvars="api=http://marketplace.envato.com/api/edge/new-files-from-user:ChristianKragh,audiojungle.xml&amp;autoplay=0&amp;refid=ChristianKragh&amp;txtColor=0x6B9B2B&amp;itemLimit=100" width="420" height="420"><br />
</object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiankragh.com/blog/?feed=rss2&amp;p=50</wfw:commentRss>
		</item>
		<item>
		<title>Coke cans / product viewer experiment</title>
		<link>http://www.christiankragh.com/blog/?p=49</link>
		<comments>http://www.christiankragh.com/blog/?p=49#comments</comments>
		<pubDate>Sun, 13 Jun 2010 07:55:55 +0000</pubDate>
		<dc:creator>Christian Kragh</dc:creator>
		
		<category><![CDATA[Experiments]]></category>

		<guid isPermaLink="false">http://www.christiankragh.com/blog/?p=49</guid>
		<description><![CDATA[I was just messing around with some transparent PNG images of coke cans trying to make a cool product viewer of some sort and this is what I came up with.  You could add tooltips to make a proper product viewer but I&#8217;m thinking of some kind of click a product and more information [...]]]></description>
			<content:encoded><![CDATA[<p>I was just messing around with some transparent PNG images of coke cans trying to make a cool product viewer of some sort and this is what I came up with.  You could add tooltips to make a proper product viewer but I&#8217;m thinking of some kind of click a product and more information is shown for that product scenario, maybe have the products moving somehow..</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="540" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" /><param name="align" value="center" /><param name="src" value="http://www.christiankragh.com/blog/wp-content/coke.swf" /><embed type="application/x-shockwave-flash" width="540" height="400" src="http://www.christiankragh.com/blog/wp-content/coke.swf" align="center"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiankragh.com/blog/?feed=rss2&amp;p=49</wfw:commentRss>
		</item>
		<item>
		<title>The &#8216;new&#8217; Class keyword and creating dynamic buttons in AS3</title>
		<link>http://www.christiankragh.com/blog/?p=48</link>
		<comments>http://www.christiankragh.com/blog/?p=48#comments</comments>
		<pubDate>Wed, 06 Jan 2010 19:29:18 +0000</pubDate>
		<dc:creator>Christian Kragh</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

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

		<guid isPermaLink="false">http://www.christiankragh.com/blog/?p=48</guid>
		<description><![CDATA[I use dynamic movieclips in almost every project I work on and AS3&#8217;s new method of adding dynamic movieclips to the stage makes it easy, instead of using AS2&#8217;s duplicateMovieClip() method.  I will show you some tips and tricks to easily create applications in which dynamic movieclips are used and easily manage those movieclips.
1. [...]]]></description>
			<content:encoded><![CDATA[<p>I use dynamic movieclips in almost every project I work on and AS3&#8217;s new method of adding dynamic movieclips to the stage makes it easy, instead of using AS2&#8217;s duplicateMovieClip() method.  I will show you some tips and tricks to easily create applications in which dynamic movieclips are used and easily manage those movieclips.</p>
<p><strong>1. Create a movieclip with a linked Class</strong><br />
First create a new AS3 project in Flash and create a new movieclip (Insert &gt; New Symbol&#8230;), let&#8217;s call it MenuButton.  In the Linkage properties (click the Advanced button if needed), check the Export for ActionScript box and for this example just leave all the settings like they are so click OK.  You can put anything inside the movieclip you want but for this example I&#8217;m putting in a black box with the following properties: X:0, Y:0, width:100, height:20.  Now return to the root scene, highlight the empty keyframe and open the actions tab.</p>
<p><span id="more-48"></span></p>
<p><strong>2. Placing instances of the movieclip on the stage</strong><br />
First we create two variables, one for counting in a loop and one for the movieclip.</p>
<p><code>var i:uint;<br />
var butn:MenuButton;</code></p>
<p>And now we create a loop to create 5 buttons, set the Y position of them and add them to the stage.</p>
<p><code>for (i = 0; i &lt; 5; i++) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butn = new MenuButton();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butn.y = i * 22;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addChild(butn);<br />
}</code></p>
<p>Now you should see 5 black boxes, one underneath the other with a 2 pixel space in between.</p>
<p><strong>3. Referencing the movieclips easily</strong><br />
We&#8217;re gonna add another variable to create an array that will store all the buttons.  Then when we create the buttons in the loop, we push the buttons into the array.  So the code will now look like this:</p>
<p><code>var i:uint;<br />
var butn:MenuButton;<br />
var butns:Array = new Array();</code></p>
<p><code>for (i = 0; i &lt; 5; i++) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butn = new MenuButton();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butns.push(butn);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butn.y = i * 22;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addChild(butn);<br />
}</code></p>
<p>So now you can call the third button for example by saying butns[2] (2 because the array count starts at 0).  This can come in handy in many situations.</p>
<p><strong>4. Making the buttons active/clickable</strong><br />
First we&#8217;re going to activate the movieclips as buttons and add a listener to them to pick up mouse clicks.  We also have to add a variable to the button so we know which one go clicked.  So now the loop block of the code will look like this:</p>
<p><code>for (i = 0; i &lt; 5; i++) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butn = new MenuButton();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butns.push(butn);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butn.y = i * 22;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butn.num = i;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butn.buttonMode = true;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;butn.addEventListener(MouseEvent.CLICK, butnClick);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addChild(butn);<br />
}</code></p>
<p>And then we create the butnClick function:</p>
<p><code>function butnClick(e:MouseEvent):void {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trace("button " + e.currentTarget.num + " was clicked.");<br />
}</code></p>
<p>And now when you test the movie you will see that you can tell which button you clicked on.  So if you wanted to create link outs you could do the following:</p>
<p><code>function butnClick(e:MouseEvent):void {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (e.currentTarget.num == 0) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigateToURL(new URLRequest("yourURL.com"));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else if (e.currentTarget.num == 1) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigateToURL(new URLRequest("yourURL2.com"));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// and so on...<br />
}<br />
</code></p>
<p><strong>5. Further possibilities</strong><br />
You can also add a dynamic text field within the button movieclip and fill it with the appropriate text - easiest using an array filled with the text and then saying butn.mytextfield.text = buttontitles[i];.<br />
You can also use XML file in connection with this application and create the buttons and/or contents declared in the XML.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiankragh.com/blog/?feed=rss2&amp;p=48</wfw:commentRss>
		</item>
		<item>
		<title>cBlog is back! + CK on AudioJungle</title>
		<link>http://www.christiankragh.com/blog/?p=47</link>
		<comments>http://www.christiankragh.com/blog/?p=47#comments</comments>
		<pubDate>Tue, 15 Dec 2009 15:45:08 +0000</pubDate>
		<dc:creator>Christian Kragh</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.christiankragh.com/blog/?p=47</guid>
		<description><![CDATA[Hey everyone,
I&#8217;m happy to announce that my blog is now equipped with a good spam blocker so I&#8217;ll be accepting comments again and plan to post regularly again.    Thanks for your patience and support.
Also, I&#8217;ve been selling stock Flash files on FlashDen (now ActiveDen) and now I&#8217;m starting to sell audio files, [...]]]></description>
			<content:encoded><![CDATA[<p>Hey everyone,</p>
<p>I&#8217;m happy to announce that my blog is now equipped with a good spam blocker so I&#8217;ll be accepting comments again and plan to post regularly again.  <img src='http://www.christiankragh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks for your patience and support.</p>
<p>Also, I&#8217;ve been selling stock Flash files on <a href="http://activeden.net/user/ChristianKragh?ref=ChristianKragh" target="_blank">FlashDen</a> (now ActiveDen) and now I&#8217;m starting to sell audio files, specifically music loops for websites, presentations, intros, etc on <a href="http://audiojungle.net/user/ChristianKragh?ref=ChristianKragh" target="_blank">AudioJungle</a>.  The Envato marketplaces are growing fast and I&#8217;m excited to see what comes next!</p>
<p>Thanks,<br />
CK</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiankragh.com/blog/?feed=rss2&amp;p=47</wfw:commentRss>
		</item>
		<item>
		<title>All apologies</title>
		<link>http://www.christiankragh.com/blog/?p=46</link>
		<comments>http://www.christiankragh.com/blog/?p=46#comments</comments>
		<pubDate>Tue, 20 Oct 2009 12:21:35 +0000</pubDate>
		<dc:creator>Christian Kragh</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.christiankragh.com/blog/?p=46</guid>
		<description><![CDATA[I&#8217;m sorry I haven&#8217;t been active on my blog and I&#8217;m also sorry that I am no longer able to sort through your comments because the blog has been completely flooded with spam.  But hopefully it will be cleaned up soon and I will post up some new articles.  Please follow me on [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sorry I haven&#8217;t been active on my blog and I&#8217;m also sorry that I am no longer able to sort through your comments because the blog has been completely flooded with spam.  But hopefully it will be cleaned up soon and I will post up some new articles.  Please follow me on Twitter if you would like updates of my work or my files on FlashDen.  Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiankragh.com/blog/?feed=rss2&amp;p=46</wfw:commentRss>
		</item>
		<item>
		<title>New FlashDen Files</title>
		<link>http://www.christiankragh.com/blog/?p=45</link>
		<comments>http://www.christiankragh.com/blog/?p=45#comments</comments>
		<pubDate>Tue, 16 Jun 2009 07:36:20 +0000</pubDate>
		<dc:creator>Christian Kragh</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.christiankragh.com/blog/?p=45</guid>
		<description><![CDATA[Just want to let everyone know that the Compare and Contrast gallery is now online as a Flash file on FlashDen here.
Also, I combined the two experiments posted here (mouse proximity blur and auto drag &#38; snap) to create a Creative Iconic Menu with mouse proximity effects Flash file now on FlashDen here.
To keep up [...]]]></description>
			<content:encoded><![CDATA[<p>Just want to let everyone know that the Compare and Contrast gallery is now online as a Flash file on FlashDen <a href="http://activeden.net/item/compare-and-contrast-xml-image-gallery/46118?ref=ChristianKragh" target="_blank">here</a>.</p>
<p>Also, I combined the two experiments posted here (mouse proximity blur and auto drag &amp; snap) to create a Creative Iconic Menu with mouse proximity effects Flash file now on FlashDen <a href="http://activeden.net/item/creative-iconic-menu-with-proximity-blur-effect/36176?ref=ChristianKragh" target="_blank">here</a>.</p>
<p>To keep up with my new FlashDen files and new work on my portfolio, you can follow me on Twitter <a href="http://twitter.com/ChristianKragh" target="_blank">here</a>.</p>
<p>Thanks!  <img src='http://www.christiankragh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiankragh.com/blog/?feed=rss2&amp;p=45</wfw:commentRss>
		</item>
		<item>
		<title>Mouse Proximity Blur Tutorial</title>
		<link>http://www.christiankragh.com/blog/?p=44</link>
		<comments>http://www.christiankragh.com/blog/?p=44#comments</comments>
		<pubDate>Tue, 31 Mar 2009 01:00:54 +0000</pubDate>
		<dc:creator>Christian Kragh</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

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

		<guid isPermaLink="false">http://www.christiankragh.com/blog/?p=44</guid>
		<description><![CDATA[How to make a menu or icons with a proximity blur effect
A mouse proximity blur is an effect which means the amount of blur on the movie clip is dependent on the distance between the movie clip and the mouse cursor.
In this tutorial, I will take you through a very basic and easy tutorial on [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How to make a menu or icons with a proximity blur effect</strong></p>
<p>A mouse proximity blur is an effect which means the amount of blur on the movie clip is dependent on the distance between the movie clip and the mouse cursor.</p>
<p><strong>In this tutorial</strong>, I will take you through a very basic and easy tutorial on how to set up a simple iconic menu and walk you through the ActionScript (AS3) to add this effect on the menu.  I first created the mouse proximity blur menu as an experiment in my last post <a href="http://www.christiankragh.com/blog/?p=43" target="_blank">here</a>.  This is what the finished product will look like:</p>
<p><span id="more-44"></span></p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="540" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,40,0"><param name="name" /><param name="align" value="center" /><param name="src" value="http://www.christiankragh.com/blog/wp-content/proximityBlur.swf" /><embed type="application/x-shockwave-flash" width="540" height="400" src="http://www.christiankragh.com/blog/wp-content/proximityBlur.swf" align="center" ></embed></object></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><img class="alignleft size-full wp-image-24" title="library" src="http://www.christiankragh.com/blog/wp-content/library.jpg" alt="" width="285" height="199" /></p>
<p>First import your images into your library.  Do this by clicking File > Import > Import to Library&#8230;  Then highlight all the images you want to bring in for your menu and click Open.  You will then see them in your library.</p>
<p>Now we want to create a new movie clip called Ball.  You can already see it in my library in the image to the left.  Do this by clicking Insert > New Symbol&#8230;  Now the Create New Symbol dialog box will pop up.</p>
<p><img class="alignleft size-full wp-image-24" title="linkage" src="http://www.christiankragh.com/blog/wp-content/linkage.jpg" alt="" width="414" height="551" /></p>
<p></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br></p>
<p></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br></p>
<p>You want to call it Ball and make sure it is of type MovieClip.  You also want to export it for ActionScript and for now we can just tell it to export on the first frame, so just make sure your dialog box looks like the one above, and then click OK.  If you get another dialog box that says it will automatically create a class, click OK - this is fine.</p>
<p><img class="alignleft size-full wp-image-24" title="ballmovieclip" src="http://www.christiankragh.com/blog/wp-content/ballmovieclip.jpg" alt="" width="419" height="425" /></p>
<p></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br><br /></br></p>
<p></br><br /></br><br /></br><br /></br><br /></br></p>
<p>Now inside the Ball movie clip, call the layer as or actions and lock it.  After highlighting the keyframe, open the Actions panel (also by pressing F9), and just write
<pre>stop();</pre>
<p> so the movie clip doesn&#8217;t keep playing.</p>
<p>Now create a new layer (by clicking on the little flipped up post-it note looking button) and name it icons or images (this is not necessary, but it is good practice for keeping everything organized).  Now make keyframes - however many images you have, make this number of keyframes, including the first keyframe - in this tutorial I&#8217;m using three images, so let&#8217;s make three keyframes.  On the first empty keyframe, drag the first icon/image from the library on to the stage, then align it so it is in the center, for example, if you have an image that is 100&#215;80 pixels, set the X position to -50 and the Y position to -40.  Do the same for the second icon/image on the second keyframe and the third icon/image on the third keyframe.  You should now have something like the image above.</p>
<p>Now go back to the main timeline by clicking the Scene 1 button.  Name this layer as or actions and lock it as well.  And again, open the actions panel - this is where we will write our ActionScript code for the menu.  After posting code, I will walk you through each line.</p>
<p>First we will create and declare variables that we will use.
<pre>var ball:Ball;
var balls:Array = new Array();
var i:uint;
var dist:Number;
var filter:BitmapFilter = new BlurFilter(30, 30, BitmapFilterQuality.MEDIUM);</pre>
<p>  The first line creates a variable called ball and the type is Ball - that is the class we made out of our Ball movie clip so using this variable, we will create new instances of this movie clip that is in our library.  We also create an array called balls that will hold of the Ball movie clip instances.  We create a variable i which is a positive integer type - this will be used for any for loops we use.  We create a variable called dist which is a number type and this will hold the number that is the distance between the movie clip and the mouse cursor.  Lastly, we create a bitmap filter variable - this holds a blur filter that we will change with the dist variable.</p>
<p>Next we create all our movie clips and place them on stage.
<pre>for (i = 0; i < 3; i++) {
	ball = new Ball();
	ball.x = 100 + (i * 170);
	ball.y = stage.stageHeight / 2;
	ball.num = i;
	ball.gotoAndStop(i + 1);
	ball.filters = [filter];
	ball.addEventListener(Event.ENTER_FRAME, blurBall);
	addChild(ball);
}</pre>
<p>  If you have not seen this before, it is called a for loop.  The first line is a statement that will loop through the code inside the brackets 3 times, when i is 0, when i is 1, and when i is 2.  So for each time, we create a new Ball movie clip.  Then we position it on the third and fourth lines.  If you calculate the X value in your head, you will see that it is incremented forward and the movie clip will be placed in front of the one before it.  Then we attach a variable called num to it which is equal to the i variable so we can store the depth of the movie clip on it.  Then we tell it to go to a frame number of i + 1, so the first movie clip where i is 0, it will go to frame 1, then frame 2 on the second movie clip and frame 3 on the third.  So it will just go to the different icon/images in our Ball movie clip that we made earlier in our library.  Then we attach the filter to it; the blur filter that was created and declared above.  Next we add an enter_frame listener to it with a calling function of blurBall which we will define later on - this function will be called on every frame and it will be attached to each Ball movie clip.  Finally, we add the ball to the stage using addChild.</p>
<p>Next we will define that blurBall function.
<pre>function blurBall(e:Event):void {
	dist = Math.sqrt(Math.pow((mouseX - e.currentTarget.x), 2) +
			Math.pow((mouseY - e.currentTarget.y), 2));
	filter = new BlurFilter(Math.floor(dist / 15),
			Math.floor(dist / 15),BitmapFilterQuality.MEDIUM);
	e.currentTarget.filters = [filter];
}</pre>
<p>  The first line is the line that creates and declares the function, calling it blurBall, it being called from a Event listener, and we aren&#8217;t returning anything so we attach void to the end.  Inside the dist number is calculated.  This is basically the mathematical equation of calculating the distance between two points.  Then new values for the XBlur and YBlur are pushed into the blur filter using the dist number.  Then the filter is applied to the movie clip in question - e.currentTarget is the movie clip that the listener is attached to, so in this case, each of the Ball movie clips.</p>
<p>Now you should have the finished product, just like the one at the top of this page.  Export your movie clip to see it playing, by clicking File > Export > Export Movie&#8230; or by hitting Ctrl + Enter.</p>
<p>You can download the finished FLA <a href="http://www.christiankragh.com/blog/wp-content/proximityBlur.fla">here</a>!</p>
<p>If you would like to activate the icons as buttons, you would do this in the for loop of the code.  Basically as follows:
<pre>for (i = 0; i < 3; i++) {
	ball = new Ball();
	ball.x = 100 + (i * 170);
	ball.y = stage.stageHeight / 2;
	ball.num = i;
	ball.gotoAndStop(i + 1);
	ball.filters = [filter];
	ball.addEventListener(Event.ENTER_FRAME, blurBall);
	ball.buttonMode = true;
	ball.addEventListener(MouseEvent.CLICK, ballClick);
	addChild(ball);
}</pre>
<p>  And then of course create and define the ballClick function just like we did the blurBall function.</p>
<p>Please feel free to comment; adding more to the file/tutorial or if you need help on it.</p>
<p>Thanks,<br />
Christian</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiankragh.com/blog/?feed=rss2&amp;p=44</wfw:commentRss>
		</item>
		<item>
		<title>Mouse Proximity Blur</title>
		<link>http://www.christiankragh.com/blog/?p=43</link>
		<comments>http://www.christiankragh.com/blog/?p=43#comments</comments>
		<pubDate>Sun, 15 Feb 2009 03:49:27 +0000</pubDate>
		<dc:creator>Christian Kragh</dc:creator>
		
		<category><![CDATA[Experiments]]></category>

		<guid isPermaLink="false">http://www.christiankragh.com/blog/?p=43</guid>
		<description><![CDATA[I created another little experiment with the same setup.  This time a mouse proximity detection which blurs the button.  The farther away from a button the mouse cursor is, the more blurred it will be.  Bring the mouse to the center of the button and it will become clear without any blur. [...]]]></description>
			<content:encoded><![CDATA[<p>I created another little experiment with the same setup.  This time a mouse proximity detection which blurs the button.  The farther away from a button the mouse cursor is, the more blurred it will be.  Bring the mouse to the center of the button and it will become clear without any blur.  Also think this will work nicely into a creative menu.  I may combine this one with the Auto Drag and Snap one to make one cool menu for <a href="http://activeden.net/user/ChristianKragh?ref=ChristianKragh" target="_blank">FlashDen</a>.  <img src='http://www.christiankragh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  These cynical, but beautiful Valentine&#8217;s Day icons were made by Eugen Buzuk at <a href="http://www.IconDrawer.com" target="_blank">IconDrawer.com</a>.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="540" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,40,0"><param name="name" /><param name="align" value="center" /><param name="src" value="http://www.christiankragh.com/blog/wp-content/proximityBlur.swf" /><embed type="application/x-shockwave-flash" width="540" height="400" src="http://www.christiankragh.com/blog/wp-content/proximityBlur.swf" align="center" ></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiankragh.com/blog/?feed=rss2&amp;p=43</wfw:commentRss>
		</item>
		<item>
		<title>Auto Drag and Snap</title>
		<link>http://www.christiankragh.com/blog/?p=42</link>
		<comments>http://www.christiankragh.com/blog/?p=42#comments</comments>
		<pubDate>Sun, 15 Feb 2009 03:46:15 +0000</pubDate>
		<dc:creator>Christian Kragh</dc:creator>
		
		<category><![CDATA[Experiments]]></category>

		<guid isPermaLink="false">http://www.christiankragh.com/blog/?p=42</guid>
		<description><![CDATA[I made a little experiment, which would be well used in a menu.  It could be a cool effect for a icon-like menu.  For each button, on mouse over, the buttons snap to your mouse position - or close to it - and then follow your mouse, but the further your mouse differs [...]]]></description>
			<content:encoded><![CDATA[<p>I made a little experiment, which would be well used in a menu.  It could be a cool effect for a icon-like menu.  For each button, on mouse over, the buttons snap to your mouse position - or close to it - and then follow your mouse, but the further your mouse differs from the original position, the more the button lags behind.  On mouse out of the button, the button snaps back to the original position in a elastic transition.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="540" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,40,0"><param name="name" /><param name="align" value="center" /><param name="src" value="http://www.christiankragh.com/blog/wp-content/autoDragAndSnap.swf" /><embed type="application/x-shockwave-flash" width="540" height="400" src="http://www.christiankragh.com/blog/wp-content/autoDragAndSnap.swf" align="center" ></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiankragh.com/blog/?feed=rss2&amp;p=42</wfw:commentRss>
		</item>
		<item>
		<title>3D Slide Picker Experiment</title>
		<link>http://www.christiankragh.com/blog/?p=41</link>
		<comments>http://www.christiankragh.com/blog/?p=41#comments</comments>
		<pubDate>Sat, 14 Feb 2009 15:08:58 +0000</pubDate>
		<dc:creator>Christian Kragh</dc:creator>
		
		<category><![CDATA[Experiments]]></category>

		<guid isPermaLink="false">http://www.christiankragh.com/blog/?p=41</guid>
		<description><![CDATA[I thought of this idea with a 3D kind of layout for picking images or even have site sections in each of these slides.  It&#8217;s not enabled to shift slides, but you could do this with shifting the depths and so forth.  You could probably also achieve this if not better with new [...]]]></description>
			<content:encoded><![CDATA[<p>I thought of this idea with a 3D kind of layout for picking images or even have site sections in each of these slides.  It&#8217;s not enabled to shift slides, but you could do this with shifting the depths and so forth.  You could probably also achieve this if not better with new CS4&#8217;s 3D capabilities.  Maybe I will do an extended version of this in the future.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="540" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,40,0"><param name="name" /><param name="align" value="center" /><param name="src" value="http://www.christiankragh.com/blog/wp-content/3dSlides.swf" /><embed type="application/x-shockwave-flash" width="540" height="400" src="http://www.christiankragh.com/blog/wp-content/3dSlides.swf" align="center" ></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiankragh.com/blog/?feed=rss2&amp;p=41</wfw:commentRss>
		</item>
	</channel>
</rss>
