<?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>Theo Stråhlén &#187; as3</title>
	<atom:link href="http://theodesign.se/tag/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://theodesign.se</link>
	<description>The blog and portfolio of Theo Stråhlén. Currently a student at Hyper Island.</description>
	<lastBuildDate>Thu, 27 Jan 2011 21:05:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>AS3: Dynamic Positioning Class</title>
		<link>http://theodesign.se/as3-dynamic-positioning-class/</link>
		<comments>http://theodesign.se/as3-dynamic-positioning-class/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 09:17:32 +0000</pubDate>
		<dc:creator>theo</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Hyper Island]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[henrik porseland]]></category>
		<category><![CDATA[positioning]]></category>

		<guid isPermaLink="false">http://theodesign.se/?p=244</guid>
		<description><![CDATA[Dont have time reading all this? Download source here For your fullscreen flash website to look as you want in every resolution you need to use dynamic positioning of your movieclips. I and Henrik Porseland put together this yesterday, most &#8230; <a href="http://theodesign.se/as3-dynamic-positioning-class/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://theodesign.se/as3-dynamic-positioning-class/"><img class="alignnone size-full wp-image-245" title="Screen shot 2010-10-21 at 4.12.01 PM" src="http://theodesign.se/wp-content/uploads/2010/10/Screen-shot-2010-10-21-at-4.12.01-PM.png" alt="" width="790" height="300" /></a></p>
<p>Dont have time reading all this? <a href="http://theodesign.se/wp-content/uploads/2010/10/DynamicPositioning.zip">Download source here</a></p>
<p>For your fullscreen flash website to look as you want in every resolution you need to use dynamic positioning of your movieclips. I and <a title="Henrik Porseland" href="http://porseland.com" target="_blank">Henrik Porseland</a> put together this yesterday, most for our own sake but also to share with others. It&#8217;s a simple class where you can place object just by typing &#8220;left&#8221; and &#8220;top&#8221; och &#8220;middle&#8221; and &#8220;bottom&#8221;. Let me show you some examples of what you can do!</p>
<p><span id="more-244"></span></p>
<p>First of all you need to import the class into your project and set some stage properties. Do that by this code:</p>
<pre>import com.blacksmiths.DynamicPositioning;
var position:DynamicPositioning = new DynamicPositioning();
var setPosition = position.setPos;

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;</pre>
<p>Now you need a resize handler for your object to change position when window is resized. Add this to the bottom your code:</p>
<pre>function resizeHandler(e:Event){
	// Nothing yet
}
stage.addEventListener(Event.RESIZE, resizeHandler);
stage.dispatchEvent(new Event(Event.RESIZE));</pre>
<p>To position your objects just add this in your resizeHandler function:</p>
<pre>position.setStageSize(stage.stageWidth,stage.stageHeight);

setPosition(box1, "left", "top");
setPosition(box2, "right", "top");
setPosition(box3, "left", "bottom");
setPosition(box4, "right", "bottom");
setPosition(box5, "middle", "middle");</pre>
<p>This code will place the objects exactly like the image on top of this post. One in every corner and one i the middle. Just like the code saids!<br />
You can tweak it how you want it. Place by number or word or both. Here is some examples how you can use the Class:</p>
<pre>setPosition(box, "middle", "bottom-20"); // center and 20px from bottom
setPosition(box, "right-100", 20); // 100px from right and 20px down
setPosition(box, "right", "top"); // in the top right corner</pre>
<p>For this to work you need to download the class, for an example just download the source.<br />
It&#8217;s very easy and quick to use. Please try it out and we&#8217;ll be happy for some feedback.</p>
<p><a class="source" href="http://theodesign.se/wp-content/uploads/2010/10/DynamicPositioning.zip">Download source for DynamicPositioning</a></p>
<p>Thank you!</p>
]]></content:encoded>
			<wfw:commentRss>http://theodesign.se/as3-dynamic-positioning-class/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>AS3: Check Microphone Activity</title>
		<link>http://theodesign.se/as3-check-microphone-activity/</link>
		<comments>http://theodesign.se/as3-check-microphone-activity/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 17:57:01 +0000</pubDate>
		<dc:creator>theo</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[microphone]]></category>

		<guid isPermaLink="false">http://theodesign.se/?p=227</guid>
		<description><![CDATA[Check out the demo here: http://theodesign.se/examples/microphone-as3/ This is a very simple example of how to get activity level of the microphone in Flash, Actionscript 3. Using the microphone on the web is a simple way of doing the experience for &#8230; <a href="http://theodesign.se/as3-check-microphone-activity/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://theodesign.se/as3-check-microphone-activity/"><img class="alignnone size-full wp-image-281" title="Screen shot 2010-10-24 at 9.30.07 PM" src="http://theodesign.se/wp-content/uploads/2010/10/Screen-shot-2010-10-24-at-9.30.07-PM.png" alt="" width="790" height="300" /></a></p>
<p>Check out the demo here: <a href="http://theodesign.se/examples/microphone-as3/" target="_blank">http://theodesign.se/examples/microphone-as3/</a></p>
<p>This is a very simple example of how to get activity level of the microphone in Flash, Actionscript 3.<br />
Using the microphone on the web is a simple way of doing the experience for the user a lot more fun. We used this for ledighetdeluxe.se where we blowed confetti online using the microphone. It&#8217;s cool and simple!<span id="more-227"></span></p>
<p>Here is the code I used for the example above, as you can see it&#8217;s not much!</p>
<pre>var myMic:Microphone = Microphone.getMicrophone(); // detect microphone
myMic.soundTransform = new SoundTransform(0, 0); // removes the sound from mic
myMic.setLoopBack(true); 

stage.addEventListener(Event.ENTER_FRAME, getMicrophone);
function getMicrophone(e:Event){
	bar.width = myMic.activityLevel*6.8; // get the activity level (0-100) and set width
	percent.text = "Activity: " + String(myMic.activityLevel) + "%";
}</pre>
<p>Simple huh?<br />
<a title="Source for MicrophoneActivity" href="http://theodesign.se/wp-content/themes/twentyten/flash/MicrophoneActivity.zip"> Download source file here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://theodesign.se/as3-check-microphone-activity/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Invite site for XV</title>
		<link>http://theodesign.se/invite-site-for-xv/</link>
		<comments>http://theodesign.se/invite-site-for-xv/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 09:51:37 +0000</pubDate>
		<dc:creator>theo</dc:creator>
				<category><![CDATA[School]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[hyper island]]></category>
		<category><![CDATA[industry]]></category>
		<category><![CDATA[invite]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[thexv]]></category>

		<guid isPermaLink="false">http://theodesign.se/?p=105</guid>
		<description><![CDATA[Visit site: http://invite.whatisxv.com For our class website we wanted to create a hype around it. We did secret sendouts to people in the digital industry with actual letters. It was a big secret and we wanted people to start talk &#8230; <a href="http://theodesign.se/invite-site-for-xv/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://theodesign.se/invite-site-for-xv"><img class="alignnone size-full wp-image-106" title="invite_1" src="http://theodesign.se/wp-content/uploads/2010/06/invite_1.jpg" alt="Invite site" width="660" height="300" /></a></p>
<p>Visit site: <a href="http://invite.whatisxv.com" target="_blank">http://invite.whatisxv.com</a></p>
<p>For our class website we wanted to create a hype around it. We did secret sendouts to people in the digital industry with actual letters. It was a big secret and we wanted people to start talk about it. I wouldn&#8217;t say it was a huge success but people started talking. <span id="more-105"></span></p>
<p>In the third letter it was a link to our website and a password. When the user logged in with their personal password the logo of their company lighted up. You could also see other agencies that visited our site since their logo was lighted up.</p>
<p><strong>My role</strong><br />
This was a part of the Marketing and promotion module so the whole class was idea developing. Me and a small group finalized then the idea. I was then one of the two developers of the site. Me and <a href="http://porseland.com" target="_blank">Henrik Porseland</a> did all the Flash and I did all the back-end for it. <a href="http://johnkarlsson.se" target="_blank">John Karlsson</a> and <a href="http://gardenberg.se" target="_blank">Alexander Gårdenberg</a> was the designers for this site as well. This site was online for a month and the 15th of May we released our <a href="http://theodesign.se/what-is-xv/" target="_self">student directory</a> with a great party at Sid Lee in Amsterdam.</p>
<p><a href="http://invite.whatisxv.com" target="_blank">Check out the invite site here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://theodesign.se/invite-site-for-xv/feed/</wfw:commentRss>
		<slash:comments>160</slash:comments>
		</item>
		<item>
		<title>SpotifyAlarm</title>
		<link>http://theodesign.se/spotifyalarm/</link>
		<comments>http://theodesign.se/spotifyalarm/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 09:08:01 +0000</pubDate>
		<dc:creator>theo</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Hyper Island]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[alarm]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[lvl3]]></category>
		<category><![CDATA[spotify]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://theodesign.se/?p=90</guid>
		<description><![CDATA[SpotifyAlarm is a small project me and my friend John did. It started with me working late one night and a dead phone and no alarm clock. I decided to make an own. There is already a bunch of alarm &#8230; <a href="http://theodesign.se/spotifyalarm/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://theodesign.se/spotifyalarm"><img class="alignnone size-full wp-image-91" title="spotifyalarm" src="http://theodesign.se/wp-content/uploads/2010/06/spotifyalarm.jpg" alt="SpotifyAlarm" width="660" height="300" /></a></p>
<p>SpotifyAlarm is a small project me and my friend <a href="http://johnkarlsson.se" target="_blank">John</a> did.</p>
<p>It started with me working late one night and a dead phone and no alarm clock. I decided to make an own. There is already a bunch of alarm clocks working with iTunes but since I have all my music on Spotify it would be great with a SpotifyAlarm! It&#8217;s coded in Actionscript 3 and then exported as a AIR application. John Karlsson did a new design for it the next day and I did some bug fixes. Turned out pretty cool!</p>
<p>We got a lot of publicity for our two night job. We went from 250 hits to 7500 hits on google on the search SpotifyAlarm. We were also featured on many tech-blogs and newspapers. It was a very fun project.</p>
<p>You can read more and <a title="SpotifyAlarm" href="http://lvl3.se/spotifyalarm" target="_blank">download SpotifyAlarm on LVL3.se</a> (Our common site).</p>
]]></content:encoded>
			<wfw:commentRss>http://theodesign.se/spotifyalarm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is XV</title>
		<link>http://theodesign.se/what-is-xv/</link>
		<comments>http://theodesign.se/what-is-xv/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 09:00:44 +0000</pubDate>
		<dc:creator>theo</dc:creator>
				<category><![CDATA[Hyper Island]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[group dynamics]]></category>
		<category><![CDATA[hyper island]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[thexv]]></category>
		<category><![CDATA[whatisxv]]></category>

		<guid isPermaLink="false">http://theodesign.se/?p=80</guid>
		<description><![CDATA[Visit Site: http://whatisxv.com This is our student directory from my class at Hyper Island, Karlskrona. We did this site during the Marketing and promotion module and the purpose of it is to promote us as students and learn how to &#8230; <a href="http://theodesign.se/what-is-xv/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://theodesign.se/what-is-xv/"><img class="alignnone size-full wp-image-81" title="test_blog_pix" src="http://theodesign.se/wp-content/uploads/2010/06/test_blog_pix.jpg" alt="whatisxv.com" width="660" height="300" /></a></p>
<p><strong>Visit Site: <a title="whatisxv" href="http://whatisxv.com" target="_blank">http://whatisxv.com</a></strong></p>
<p>This is our student directory from my class at Hyper Island, Karlskrona. We did this site during the Marketing and promotion module and the purpose of it is to promote us as students and learn how to work with the whole group of 36 students.<span id="more-80"></span></p>
<p><strong>What is XV?</strong><br />
XV means 15 in roman letters.</p>
<p>Three years ago Hyper Island went from the numbered crew concept to labeling classes with abbreviations, ordered by completion year and location. This ended a fine tradition. A tradition in which we would have been the 15th crew, instead of our current label DM11KNA, Digital Media 11 Karlskrona.<br />
We felt that the crew tradition carried a great brand value and we wanted to rebrand the crew concept and salvage some of the value, so we created the secret Hyper Island Order and the 15th Chapter.</p>
<p><strong>Process</strong><br />
This project was a huge one with 36 guys involved, many ideas and thoughts at the same time, do&#8217;s and dont&#8217;s &amp; pros and cons.<br />
The whole class become later divided in to different groups.</p>
<p>- Documentation<br />
- Invite letters<br />
- Invite video<br />
- Finance<br />
- Photo<br />
- Web production</p>
<p><strong>My role</strong><br />
My role in the XV project was developer.<br />
I was involved in the whole idea development phase as well. Me and a small group of people finalized the idea of the website.<br />
In production we were only four guys working on the website. The designers; <a title="Alexander Gårdenberg Portfolio" href="http://gardenberg.se" target="_blank">Alexander Gårdenberg</a> and <a title="John Karlsson Portfolio" href="http://johnkarlsson.se" target="_blank">John Karlsson</a> and the developers, me and <a title="Henrik Porseland Portfolio" href="http://porseland.com" target="_blank">Henrik Porseland</a>. We did it all in Flash first, but since all the hype around the iPad I decided to create a HTML/Javascript version of it as well. I was also responsible for the back-end of the site. I did a small CMS for the site and connected it to the flash and html version.</p>
<p>I&#8217;m happy with the final result and I learnt a lot during this module. A lot of AS3, Javascript and of course group dynamics.</p>
<p>Hope you enjoy the site!</p>
<p><a title="What is XV?" href="http://whatisxv.com/html" target="_blank">Link to HTML version</a></p>
<p><a title="What Is XV?" href="http://whatisxv.com/flash" target="_blank">Link to Flash version</a></p>
]]></content:encoded>
			<wfw:commentRss>http://theodesign.se/what-is-xv/feed/</wfw:commentRss>
		<slash:comments>326</slash:comments>
		</item>
	</channel>
</rss>

